Commit Graph

127 Commits

Author SHA1 Message Date
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +08:00
kailixu a709f7c0bb chore: update test case 2023-07-03 19:18:06 +08:00
kailixu e8ce5a1000 chore: code optimization 2023-07-02 23:03:13 +08:00
kailixu 06c0d99008 chore: add test case 2023-07-02 22:57:10 +08:00
kailixu 067a8334fd chore: code optimization 2023-06-30 16:30:04 +08:00
kailixu 387d611179 chore: passVer and authVer refact 2023-06-30 14:52:20 +08:00
Haojun Liao 5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +08:00
dapan1121 23bcfc2fd0 enh: stmt column length validation 2023-05-31 09:16:47 +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
kailixu b059cc4ee1 chore: code optimization 2023-04-25 10:59:02 +08:00
kailixu ee1a4b665a chore: more code 2023-04-23 17:48:03 +08:00
kailixu 0256b44be8 chore: code optimization 2023-04-23 17:45:03 +08:00
kailixu fb99654899 chore: add UT 2023-04-21 18:22:44 +08:00
dapan1121 f79eeb3032 fix: add stmt error handling 2023-04-04 08:54:28 +08:00
dapan1121 ee70606f19 fix: projection query in descending order result error issue 2023-03-01 14:48:15 +08:00
Xiaoyu Wang 24157e78d6 merge main 2023-01-28 17:52:58 +08:00
dapan1121 63a23a3562 fix: insert into select can't be stopped issue 2023-01-17 09:12:51 +08:00
dapan1121 0fff3b3447 feat: add batch get table Vgid API 2023-01-04 14:13:08 +08:00
dapan1121 36c582c678 feat: add batch get table vgId API 2023-01-04 14:01:43 +08:00
Haojun Liao fdade6d6a3
Merge branch '3.0' into refact/submit_req 2022-12-19 11:24:00 +08:00
dapan1121 186384dda3 fix: refact some example files 2022-12-13 15:26:16 +08:00
Hongze Cheng 13fb304627 Merge branch '3.0' of https://github.com/taosdata/TDengine into refact/submit_req 2022-12-07 13:01:13 +08:00
dapan1121 34072c2307 fix: add stmt sort merge case 2022-12-06 20:40:29 +08:00
dapan1121 873937ca91 fix: add stmt cases 2022-12-03 20:35:31 +08:00
dapan1121 0143b4fe64 enh: optimize stmt auto create table 2022-12-03 14:56:51 +08:00
dapan1121 644bba8e2b fix: restore cache clear 2022-12-02 13:56:19 +08:00
dapan1121 ad5e85296f fix: auto creating table failed issue when table already exists 2022-11-24 18:35:03 +08:00
Hui Li f066c3ec03
Update stopquery.c 2022-10-27 18:59:41 +08:00
Hui Li 4023dc6ec9
Update stopquery.c 2022-10-27 18:13:04 +08:00
Hui Li 18316317f7
modify makefile 2022-10-27 18:03:38 +08:00
dapan1121 7c133359ce feat: add retrieve db and table route info api 2022-10-20 15:13:39 +08:00
dapan1121 205299e532 fix: fix taosd stmt query crash issue 2022-08-29 17:46:34 +08:00
dapan1121 6c683902ff fix: fix show create table issue 2022-07-21 15:23:18 +08:00
dapan1121 e477538f78 fix: keep one case 2022-07-20 09:50:42 +08:00
dapan1121 d266bfe187 fix: fix stmt memory leak 2022-07-20 08:39:52 +08:00
dapan1121 d2e780b14e fix: fix memory leak 2022-07-19 16:47:53 +08:00
dapan1121 1444054437 fix: fix stmt memory leak 2022-07-18 18:57:47 +08:00
dapan1121 ae132e6626 Merge branch '3.0' into enh/schPolicy 2022-07-14 18:44:21 +08:00
dapan1121 a0f7cc6790 enh: add schedule policy 2022-07-14 14:03:27 +08:00
dapan1121 ad051d4e65 fix: fix stop query issue 2022-07-13 20:25:16 +08:00
dapan1121 7891ff0f03 fix: fix stop query issue 2022-07-13 11:31:28 +08:00
dapan1121 9f0152239d fix: fix stop query 2022-07-12 14:56:12 +08:00
dapan1121 7fcf80a8f9 enh: add more retry times for data src task 2022-07-12 09:24:01 +08:00
dapan1121 817a319a2e enh: kill query 2022-07-01 21:01:35 +08:00
dapan1121 a657413fa6 enh: kill query 2022-07-01 11:10:35 +08:00
dapan1121 c9d9c3ffd0 enh: stop query 2022-06-28 09:28:50 +08:00
dapan1121 d402716465 enh: stop query 2022-06-27 18:29:28 +08:00
dapan1121 de06f055c2 enh: stop query 2022-06-27 13:33:29 +08:00
dapan1121 c364f98978 enh: stop query process 2022-06-26 19:34:50 +08:00
dapan1121 b6c38a4f1b enh: stop query process 2022-06-26 15:13:22 +08:00