Commit Graph

166 Commits

Author SHA1 Message Date
Haojun Liao 25bfcb7908 fix(query): fix error in test. 2024-08-27 18:44:42 +08:00
wangmm0220 3ef942bf4b Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/TS-3718 2024-08-08 10:59:45 +08:00
54liuyao f0e4d2f085 fix malloc issue 2024-08-05 12:22:25 +08:00
wangmm0220 4d19f48d8a feat:[TS-3718]save slow log file one day one file 2024-08-02 16:29:48 +08:00
Haojun Liao 848b4aab4f fix(util): fix error 2024-07-28 15:46:19 +08:00
Haojun Liao 7be2ecbe1f fix(common): check the return value. 2024-07-27 18:55:34 +08:00
Haojun Liao 3073d6d067 other: merge 3.0 2024-07-27 00:03:28 +08:00
wangjiaming0909 1994c3339b nodes add ret check 2024-07-26 17:55:48 +08:00
Haojun Liao 6eaa8d55cf fix(test): fix error in ut. 2024-07-24 18:02:42 +08:00
54liuyao 1d35ea137a adj query operator result 2024-07-23 10:50:16 +08:00
dapan1121 64ad240773 fix: crash issue 2024-07-22 14:35:12 +08:00
dapan1121 29243ea839 fix: windows compile issue 2024-04-16 11:29:19 +08:00
dapan1121 6d4f0b2ceb fix: asof jlimit issue 2024-04-15 16:12:12 +08:00
dapan1121 0fb672d8a6 enh: optimize join performance 2024-04-01 15:24:12 +08:00
dapan1121 61fa803085 fix: windows compile issue 2024-03-23 20:28:17 +08:00
dapan1121 91d3848c71 fix: case issue 2024-03-23 20:24:50 +08:00
dapan1121 3835a5b349 fix: error log and union issue 2024-03-22 08:47:07 +08:00
dapan1121 1c0d20a2a4 enh: add test cases 2024-03-20 15:45:24 +08:00
dapan1121 abd36b0b1a enh: support timeline processing 2024-03-19 16:01:14 +08:00
dapan1121 1c8dcaf46c enh: support timeline functions 2024-03-15 18:10:08 +08:00
dapan1121 3f36f7ea52 enh: support desc join 2024-03-08 16:23:41 +08:00
dapan1121 f13c9d2ca4 fix: merge join timetruncate issue 2024-03-01 09:49:59 +08:00
dapan1121 85cca872a5 enh: support timetruncate function 2024-02-29 17:52:53 +08:00
dapan1121 97aca25633 enh: support group join 2024-02-23 17:59:45 +08:00
dapan1121 c4dbae3a5a enh: add window join ut 2024-02-20 17:13:29 -08:00
dapan1121 9b008716fe enh: add window join ut 2024-02-02 16:06:01 +08:00
dapan1121 ab87953362 enh: support window join 2024-02-01 14:58:08 +08:00
dapan1121 50c420e6b9 enh: support window join 2024-01-30 19:19:44 +08:00
dapan1121 4a516556a9 enh: add right asof join test cases 2024-01-30 08:49:34 +08:00
dapan1121 32b16bd6e7 enh: fix asof bugs 2024-01-29 16:58:08 +08:00
dapan1121 6640809638 Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-01-23 14:48:12 +08:00
dapan1121 3630cbd18d enh: add asof ut framework 2024-01-23 14:47:24 +08:00
dapan1121 888343f6fa enh: add asof ut 2024-01-22 19:24:31 +08:00
slzhou 9e3a42af01 fix: modify test case 2024-01-21 16:15:51 +08:00
slzhou e84d36dd39 fix: add test case 2024-01-19 22:42:10 +08:00
dapan1121 3fecb387cc enh: support asof join 2024-01-19 18:03:16 +08:00
dapan1121 fb20dd51de Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-01-18 17:11:25 +08:00
dapan1121 dec6e3fffe enh: support asof join 2024-01-12 18:29:27 +08:00
dapan1121 8d1f5ff479 enh: add asof 2024-01-11 19:25:12 +08:00
slzhou b4b4400958 fix: recalcuate window ekey 2024-01-10 21:36:09 +08:00
dapan1121 5f0440a42c enh: support semi/anti join 2024-01-10 18:56:49 +08:00
slzhou ba2ba0a8cb fix: time window computation error 2024-01-10 16:19:20 +08:00
dapan1121 0ef7f089be fix: full join issues 2024-01-05 19:24:22 +08:00
dapan1121 0695ed8974 fix: add full test 2024-01-05 17:16:51 +08:00
dapan1121 8e73bedbc7 enh: add join ut 2024-01-05 14:40:05 +08:00
dapan1121 40209db9c7 fix: memory leak issues 2023-12-25 09:19:55 +08:00
dapan1121 8bdf3df6a9 enh: left join ut 2023-12-22 19:25:55 +08:00
dapan1121 279b2aa10a enh: add join ut 2023-12-19 11:17:39 +08:00
Haojun Liao 5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +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