Commit Graph

145 Commits

Author SHA1 Message Date
dapan1121 eca1b1aeab fix: stmt query execution mode issue 2023-11-07 11:20:08 +08:00
slzhou 2aa02845dc fix: insert perf utility improvement 2023-11-03 11:42:53 +08:00
slzhou 9b6e44756c restart ci 2023-11-01 16:32:42 +08:00
slzhou 5f52f8940f restart ci 2023-11-01 16:24:54 +08:00
slzhou 4a2c52783b Merge branch '3.0' of github.com:taosdata/TDengine into szhou/insert-stb-tbname 2023-11-01 14:10:02 +08:00
slzhou 670a95fabc fix: performance test 2023-10-31 21:10:25 +08:00
slzhou 041ef1ef83 enhance: colvals of table data cxt is not used in insert stb syntax 2023-10-31 17:05:37 +08:00
dapan1121 7c8cf28b37 feat: add privileges 2023-10-16 19:53:08 +08:00
kailixu e4291cf440 fix: reset hb flag for duplicated user key 2023-10-11 20:12:10 +08:00
kailixu be3438fc5b enh: erase dup notification 2023-09-21 16:12:46 +08:00
kailixu 2ff0748022 enh: remove user cache in catalog when user dropped 2023-09-21 11:29:34 +08:00
kailixu 2b25982495 enh: user dropped notification 2023-09-21 09:53:45 +08:00
slzhou 6dfb939f22 enhance: enhance test case 2023-09-14 14:11:50 +08:00
slzhou 7aa3bd92a2 fix: remove whitelistttest executable 2023-09-14 13:28:53 +08:00
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