Commit Graph

181 Commits

Author SHA1 Message Date
slzhou 0a016b1d2e fix: test case printf 2023-09-14 13:27:43 +08:00
slzhou 94236b8cee fix: pass some test 2023-09-14 13:05:58 +08:00
shenglian zhou 4931bfa7a0 enhance: add test for api 2023-09-14 09:02:32 +08:00
shenglian zhou 70a014d8f7 enh: begin writing test 2023-09-12 16:34:32 +08:00
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
afwerar 9dff7b93c6 test: fix sim test error 2022-06-21 20:04:55 +08:00
dapan1121 d86d8803be stmt new api 2022-06-01 13:14:28 +08:00
dapan1121 733d221699 fix stmt bug 2022-05-21 16:04:25 +08:00
dapan1121 d1078b5af2 stmt query 2022-05-18 14:06:13 +08:00
dapan1121 a3b0136e3c stmt query 2022-05-17 22:03:50 +08:00
dapan1121 1b2ca4c1b4 stmt query 2022-05-13 19:08:16 +08:00
dapan1121 ce3b4b3183 stmt query 2022-05-13 16:35:19 +08:00
dapan1121 33bd196ff0 stmt query 2022-05-12 19:20:25 +08:00
dapan1121 cc9983ab91 fix bug 2022-05-11 21:35:00 +08:00
dapan1121 327b5cdae9 stmt auto create table 2022-05-11 19:02:39 +08:00
dapan1121 9fcc676e3f stmt auto create table 2022-05-11 16:04:33 +08:00
dapan f506604d65 stmt auto create table 2022-05-11 14:41:39 +08:00
dapan 66bcbbba47 stmt auto create table 2022-05-11 11:44:09 +08:00
dapan 005ff0eda9 stmt auto create table 2022-05-10 15:50:41 +08:00
dapan 0c1ac7a367 stmt test 2022-05-09 17:01:55 +08:00
dapan f0154c03c9 stmt auto create table 2022-05-09 16:03:56 +08:00
dapan e99e03ee7c Merge branch 'feature/qnode' of https://github.com/taosdata/TDengine into feature/qnode 2022-05-09 07:59:27 +08:00
dapan 1f4749439f stmt test 2022-05-09 07:59:07 +08:00
dapan1121 7c535c40ba
Merge branch '3.0' into feature/qnode 2022-05-07 22:03:14 +08:00
dapan1121 6f49a2ca73 stmt insert 2022-05-07 21:10:52 +08:00
dapan1121 1792bf5ff3 fix bug 2022-05-07 14:46:04 +08:00
dapan1121 d12532b4d2 feature/qnodew 2022-05-06 16:35:24 +08:00
dapan1121 00b29f0677 feature/qnode 2022-05-05 09:36:11 +08:00
dapan1121 c3484ce8c3 stmt query 2022-04-29 20:04:34 +08:00
dapan1121 dd13924dbc stmt query 2022-04-29 14:35:54 +08:00
dapan1121 92c555f257 stmt query 2022-04-29 09:20:37 +08:00
dapan1121 c4cfcef6e9 stmt query 2022-04-28 20:24:21 +08:00
dapan1121 54fe93f77e stmt query 2022-04-28 17:09:21 +08:00
dapan1121 1850dc0371 stmt query 2022-04-28 11:47:55 +08:00
dapan1121 1aa22beb60 stmt query 2022-04-27 20:03:13 +08:00
dapan1121 65a7d0f1c2 scalar constant 2022-04-26 15:51:46 +08:00
dapan1121 15d7abf46f stmt query 2022-04-25 20:03:28 +08:00
dapan1121 3ae9769887 stmt 2022-04-21 10:16:43 +08:00
dapan1121 dff638c377 stmt 2022-04-20 20:07:49 +08:00
dapan1121 b77731702e stmt 2022-04-20 18:27:00 +08:00
dapan1121 bb62a7d1ff stmt 2022-04-20 11:26:20 +08:00
dapan1121 c23260f94b stmt 2022-04-20 10:22:09 +08:00
dapan1121 9c178b01e8 stmt 2022-04-20 10:06:49 +08:00
dapan1121 5acc77393f stmt 2022-04-20 09:39:55 +08:00
dapan1121 da4379853d stmt 2022-04-20 09:12:59 +08:00
dapan1121 743ff696b8 stmt 2022-04-20 08:58:29 +08:00
dapan1121 0f13cee876 stmt 2022-04-19 20:16:17 +08:00
dapan1121 a1c4f5c2ce stmt 2022-04-18 19:12:10 +08:00
dapan1121 0c2f22fb82 stmt 2022-04-18 19:08:27 +08:00
dapan1121 1e1cca9857 stmt 2022-04-18 13:22:47 +08:00
afwerar 222db126bc [TD-13758]<fix>: redefine memory api. 2022-03-26 00:29:53 +08:00