Commit Graph

160 Commits

Author SHA1 Message Date
Minglei Jin 352cf8468b stmt2/test: new stmt2 api test program 2024-09-06 14:50:35 +08:00
Minglei Jin fea7265c0a multiple binding for example 2024-08-29 17:40:02 +08:00
Minglei Jin bfde995913 stmt2/none: 2 in null array for none 2024-08-29 09:12:48 +08:00
Minglei Jin 8cbcdec4bf stmt2/async: new sem for api syncing 2024-08-29 08:56:24 +08:00
Minglei Jin 4cab7ea4f7 stmt2/meta: tbname (multi-insert) parameterized or not 2024-08-26 16:45:18 +08:00
Minglei Jin e535fadc51 none for stmt2 example 2024-08-23 17:10:35 +08:00
Minglei Jin eef3d8fa5e null length array for non-var-data types 2024-08-23 14:12:11 +08:00
Minglei Jin 44eb4661dc normalize bool's value 2024-08-23 09:12:22 +08:00
Minglei Jin a1ee69d148 stmt2/example: use stmt2's close instead of stmt 2024-08-21 18:32:45 +08:00
Minglei Jin 8190c10434 stmt2/example: binary without hole 2024-08-21 17:25:24 +08:00
Minglei Jin 68bd8d28f0 stmt2/binding: no hole for cols binding 2024-08-21 15:30:21 +08:00
Minglei Jin 921b7e495e stmt2/stb: no hole in bind for stb binding 2024-08-21 12:33:19 +08:00
dapan1121 0616d886cb enh: optimize table columns allocation 2024-06-07 13:50:57 +08:00
dapan1121 da8616d98a fix: add stbInterlace mode test cases 2024-06-05 17:12:15 +08:00
dapan1121 86cadeabba fix: stmt write issue 2024-06-03 19:24:53 +08:00
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