Commit Graph

107 Commits

Author SHA1 Message Date
lyh250-666 69d62454d7 enh:modify error code passing 2024-09-20 17:48:04 +08:00
wangjiaming0909 91927e84a5 ret check for memory allocation 2024-09-18 19:11:35 +08:00
Hongze Cheng 6075213353
Merge pull request #27929 from taosdata/fix/TD-32125
fix(stmt/settag): return error if var tag's length is null
2024-09-18 18:45:21 +08:00
Minglei Jin ad56719d9b stmt2/bind tags: fail with null var tag length 2024-09-18 16:03:26 +08:00
Minglei Jin 94d76ffcd2 fix(stmt/settag): return error if var tag's length is null 2024-09-18 15:07:46 +08:00
Minglei Jin 4d4f73de4e stmt: return oom if mem alloc failed 2024-09-18 13:52:34 +08:00
Hongze Cheng eda1395928
Merge pull request #27886 from taosdata/fix/TD-30813-5
fix(stmt2/settbtags): fix memleak & can not set tags issue
2024-09-18 10:07:57 +08:00
Minglei Jin c789909579 fix(stmt2/gettags): return zero tags for normal tables 2024-09-14 15:52:30 +08:00
xsren 78e9bb95ac osString 2024-09-12 14:02:19 +08:00
lyh250-666 01bae36e82 enh:modify error code passing in libs/ 2024-09-10 18:42:00 +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
Minglei Jin b9303b0ed4 fix multi nchar writing 2024-08-20 13:55:02 +08:00
Minglei Jin bf4f0bc377 move tag binding out of cols binding 2024-08-15 16:06:16 +08:00
Minglei Jin 298c4b4812 feat(stmt2): initial commit for stmt2 2024-08-15 09:28:32 +08:00
WANG MINGMING 81b78feaf8
Merge branch '3.0' into opti/TD-31097 2024-07-26 23:32:33 +08:00
wangjiaming0909 4d5cd9cd1a planner/nodes/parser ret check 2024-07-26 17:57:27 +08:00
wangmm0220 ebe7276c2c fix:[TD-31017]process return value in client for tmq 2024-07-25 17:15:41 +08:00
Hongze Cheng b761bd2e38 enh: port main change to 3.0 2024-06-26 10:32:15 +08:00
xjzhou 883eb48bf2 fix: stmt bind crashed when colIdx exceeds column nums 2024-06-20 15:22:50 +08:00
dapan1121 3f99e5e064 fix: memory issues 2024-06-07 09:25:17 +08:00
dapan1121 da8616d98a fix: add stbInterlace mode test cases 2024-06-05 17:12:15 +08:00
dapan1121 c0e4ab20a4 enh: optimize stmt performance 2024-05-30 13:26:17 +08:00
kailixu 7f11a3682b enh: primary key column should not be null 2024-04-10 18:41:20 +08:00
kailixu dc60812183 chore: unify the prompt msg 2024-04-02 15:04:13 +08:00
kailixu 77d912c210 fix: primary key should not be null or none 2024-04-02 14:39:13 +08:00
Bob Liu 5c5efa34eb fix crash when insert big csv 2023-11-29 01:53:13 +08:00
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +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
dapan1121 de1161dafb enh: ignore single row null data type validation 2023-04-24 19:22:44 +08:00
dapan1121 4a9d62b467 enh: ignore single row null data type validation 2023-04-19 10:18:41 +08:00
Xiaoyu Wang 0c269c317b merge 3.0 2022-12-23 17:50:05 +08:00
Xiaoyu Wang ad7f9b274b enh: improve unit tests 2022-12-20 16:53:08 +08:00
Haojun Liao 8fdaa5be5a fix(query): fix syntax error on windows. 2022-12-19 14:27:24 +08:00
wangmm0220 03df0ae1e1 fix:error in CI 2022-12-12 19:51:28 +08:00
Hongze Cheng 899d7b0bcc Merge branch '3.0' of https://github.com/taosdata/TDengine into refact/submit_req 2022-12-06 14:37:22 +08:00
dapan1121 1024cba311 fix: fix stmt table not exists issue 2022-12-05 15:45:25 +08:00
dapan1121 e455269220 fix: memory leak and other issues 2022-12-03 18:46:59 +08:00
dapan1121 c6c8159ecb fix: fix field type error 2022-12-03 16:03:38 +08:00
dapan1121 0143b4fe64 enh: optimize stmt auto create table 2022-12-03 14:56:51 +08:00
dapan1121 51795b06a9 enh: add nchar convertion 2022-12-03 10:24:51 +08:00
Shengliang Guan d9c261cd13 refact: remove some error codes 2022-12-03 10:17:02 +08:00
dapan1121 f4f0f93866 enh: add nchar column convertion 2022-12-02 21:41:18 +08:00
dapan1121 a704abe9e6 fix: bind single column memory issue 2022-12-02 09:34:43 +08:00
dapan1121 2e75de8368 fix: fix submit response message handling 2022-12-01 19:26:26 +08:00
dapan1121 f7d94f73f5 enh: support column mode write 2022-11-30 19:08:48 +08:00
dapan1121 34662ea10a enh: support column mode write 2022-11-30 16:57:24 +08:00
wangmm0220 b5e4b05752 fix:[TS-2057] add interface with ttl in schemaless 2022-11-29 11:52:40 +08:00
Hongze Cheng 91a5f8958f Merge branch '3.0' of https://github.com/taosdata/TDengine into refact/submit_req 2022-11-24 09:23:45 +08:00
Hongze Cheng c1db8a9e4d refact code 2022-11-23 20:13:27 +08:00
dapan1121 5ec50ca5eb enh: add stmt tag length validation 2022-11-23 13:51:13 +08:00
Xiaoyu Wang b7bc828172 enh: insert optimize 2022-11-06 18:42:53 +08:00
Xiaoyu Wang 8513dc1067 enh: insert optimize 2022-11-04 15:21:38 +08:00
Cary Xu 6d0d42569a enh: remove obsolete codes for raw data row 2022-10-25 11:30:57 +08:00
Xiaoyu Wang 64cf24830e enh: insert parser refactor 2022-10-24 16:38:16 +08:00