Commit Graph

56 Commits

Author SHA1 Message Date
Hongze Cheng 81d6a1479d more code 2024-02-28 14:34:37 +08:00
Hongze Cheng e7177dae57 more code 2024-01-26 17:14:00 +08:00
factosea c5932c9d1c fix: wildcard character in both target and pattern 2024-01-08 01:13:53 +08:00
factosea 1aae0e52e3 fix: like wildcard match 2023-12-26 14:48:05 +08:00
factosea e2d2ffc00e fix: % wildcard 2023-12-13 16:07:10 +08:00
wangmm0220 26e025d78d feat:[TD-18789]support varbinary type 2023-08-25 15:43:45 +08:00
wangmm0220 f266d51764 feat:support varbinary type 2023-08-16 19:05:07 +08:00
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +08:00
Shungang Li 308ba7a02e fix: type geometry predicates support
support "=, <>, is null, is not null, in, not in"
2023-06-29 09:44:51 +08:00
Dingle Zhang 984211f3b4
Feature/3.0 geometry (#21037)
* Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far.

* add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling

* change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh

* Add a function MakePoint() and introduce a lib geometry

* implement sql functions GeomFromText() and AsText()

* Use GEOS *_r funcions instead for thread safety

* Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT.
Add geosWrapper to wrap the basic GEOS functions for TDEngine.

* refactor AsText and MakePoint functions to be like GeomFromText

* Show WKT when print geometry data in screen
Dump hex data when dump geometry data in a file

* define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues.

* set number of decimals of WKT to 6

* Implement SQL function Intersects()

* refactor geometry sql functions

* Add geosErrMsgeHandler() to get the GEOS error detail

* use threadlocal to instantiate SGeosContext
call destroyGeosContext() only if the thread exists

* remove SGeosContext *context param for all geometry functions since we use thread local one,
so that all caller do not need to know the context.

* Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance.

* rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn

* Add prefix "ST_" for all geometry functions

* move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util,
so that all unit test tools can compile

* Add unit test for geometry lib, only test MakePoint so far

* refactor and enhance existing cases in geomFuncTest

* implement NULL type and NULL value test for geomFuncTest

* add test on geomFromText()

* add unit test on AsText() in geomFuncTest

* combine some makePointFunction test items

* add intersectsFunctionTwoColumns test
refactor on callGeomFromTextWrapper functions

* enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content

* add more cases into intersectsFunction test

* Add basic test on geometry in system test

* Add ST_GeomFromText and ST_AsText function test in system test on geometry

* add ST_Intersects function test in system test on geometry

* support to check expectedErrno in system test on geometry

* adjust geomTest unit test and geometry system test

* add geometry data type and functions in doc english version

* implement touchesFunction() in geometry lib
refactor geometry relation functions model

* separate gemFuncTest into several src files

* add unit test on touchesFunction

* support sql function ST_Touches()
add system test on ST_Touches

* add docs for ST_Touches()

* Add ST_Contains()

* Add ST_Covers()

* Add ST_Equals()

* add swapAllowed param for geomRelationFunction()
read geom2 earlier intead of at doGeosRelation()

* Add ST_ContainsProperly()

* build on windows

* Merge from 3.0 to 3.0_geometry

* change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility

* change '\\NULL' to 'NULL' back in shellDumpFieldToFile()

* add /usr/local/include into include directory

* add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 15:36:46 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
wangjiaming0909 e22c62ffba fix: data compare of signed and unsigned integers 2023-05-08 18:13:37 +08:00
kailixu 37bc1bca36 enh: column/row max length support up to 64K 2023-04-03 17:00:52 +08:00
Xiaoyu Wang d6dd087f84 merge main 2023-02-25 10:29:20 +08:00
cyang ad56390a08 fix:compare func for topic & doublue free in taosArrayRemoveDuplicateP for topic 2023-02-21 00:54:34 +08:00
Shengliang Guan 3016f35e9f Merge branch '3.0' into merge/mainto3.0_0105 2023-01-05 16:08:23 +08:00
Xiaoyu Wang fdde287ca9 merge main 2023-01-04 11:43:20 +08:00
Alex Duan 55067ad15c fix: build error covert pointer type 2023-01-03 17:50:33 +08:00
Alex Duan bb6c875765 fix: conform NCHAR sort order with VARCHAR 2023-01-03 17:39:00 +08:00
Alex Duan 02dec5a10a enh: assert remove task 2022-12-30 15:51:10 +08:00
Haojun Liao 7eeea8a29c fix(query): fix the invalid access, and do some internal refactor. 2022-12-29 17:56:20 +08:00
Haojun Liao f970dd24fc fix(query): fix the invalid access. 2022-12-29 16:34:14 +08:00
Haojun Liao 0e471afc03 fix(query): fix the invalid access. 2022-12-29 14:48:57 +08:00
Haojun Liao 011c83956b refactor: do some internal refactor. 2022-12-28 19:12:36 +08:00
Haojun Liao 1e69538c37 fix(query): opt filter perf. 2022-12-27 16:55:38 +08:00
Alex Duan 232c4f4a48 fix(util): tcompare.c modify over 2022-12-23 18:24:24 +08:00
dapan1121 e455269220 fix: memory leak and other issues 2022-12-03 18:46:59 +08:00
dapan1121 fc73d39add fix: fix compare invalid read issues 2022-11-08 13:27:17 +08:00
Hongze Cheng fcbaa6082b more code refact 2022-10-13 11:49:46 +08:00
Shengliang Guan 4401080328 enh: make cmake .. -DCMAKE_BUILD_TYPE=Release work 2022-08-31 18:06:17 +08:00
dapan1121 2bf49b0c8e fix: fix uint64_t value issue 2022-08-29 10:34:36 +08:00
dapan1121 d955942a64 Merge remote-tracking branch 'origin/3.0' into enh/removeConvert 2022-08-29 09:29:12 +08:00
dapan1121 44dcaf2517 fix: fix type convertion issue 2022-08-29 09:28:38 +08:00
dapan1121 d18e7cd739 enh: remove compare type convertion 2022-08-26 16:20:07 +08:00
Haojun Liao 5d4d2ec14c fix(query): replace the min macro. 2022-08-25 23:22:04 +08:00
Haojun Liao 04ce7ffcb8 fix(query): fix string compare function. 2022-08-25 19:31:45 +08:00
Haojun Liao 96f21afe8f fix(query): update the string order policy. 2022-08-25 18:27:59 +08:00
wangmm0220 8390080074 fix: error in empty string in operator 2022-07-02 16:16:18 +08:00
wangmm0220 0232394386 fix: fix error in json and add test cases for json 2022-06-06 17:55:14 +08:00
wangmm0220 a2ebeda89c feat: add sort/group logic for json 2022-06-04 19:28:30 +08:00
Hongze Cheng c8acaa77bb Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/vnode_refact1 2022-04-20 12:29:57 +00:00
Hongze Cheng 3cc66adcb7 refact meta 1 2022-04-19 13:10:03 +00:00
wangmm0220 b7bd654c77 refactor: add compare logic for json value 2022-04-16 21:24:07 +08:00
wangmm0220 5aa3467e2b merge from 3.0 2022-04-02 19:02:45 +08:00
wangmm0220 12c3a10a9b fix error in order by logic & fix no return error 2022-04-02 14:29:43 +08:00
Haojun Liao 02e097dc5c [td-14426] fix bug. 2022-03-31 17:36:51 +08:00
afwerar 222db126bc [TD-13758]<fix>: redefine memory api. 2022-03-26 00:29:53 +08:00
afwerar 159c2671a2 [TD-13767]<fix>: forbid wchar_t. 2022-03-18 16:48:12 +08:00
afwerar 30c10ef8b3 [TD-13063]<fix>: prepare for win compilation. 2022-03-17 14:22:36 +08:00
Shengliang Guan 68f3de6111 remove tfile 2022-02-28 13:49:38 +08:00