Commit Graph

71 Commits

Author SHA1 Message Date
Pengrongkun 09a9298de7 TD-32797:fix array realloc problem 2024-11-22 17:43:54 +08:00
Pengrongkun f3b4aa14be add checkWKBGeometry function 2024-11-19 16:44:28 +08:00
Pengrongkun ff2d0e6d67 fix CI problem 2024-11-19 09:22:34 +08:00
Pengrongkun a774d3b428 fix some review problem 2024-11-16 09:27:52 +08:00
Pengrongkun 8d5508a7a6 fix compile problem 2024-11-16 08:52:57 +08:00
Pengrongkun 6f3c6548cb add geometry check during stmt_bind_param 2024-11-14 21:25:14 +08:00
Pengrongkun b011ef49e0 TD-32120:add api taos_stmt2_get_all_fields
fix some format

convert TAOS_FIELD_E to TAOS_FIELD_ALL, to prevent modifications to the original API

rename taos_stmt2_get_stb_fields

refact parse for ctbname parameterized

refactor some code, fix some core problem.
2024-11-04 16:59:13 +08:00
Hongze Cheng e260eb7a07
Revert "enh(stmt2):add api taos_stmt2_get_all_fields" 2024-10-31 13:35:42 +08:00
Pengrongkun 3895a7707a convert TAOS_FIELD_E to TAOS_FIELD_ALL, to prevent modifications to the original API 2024-10-30 18:12:08 +08:00
Pengrongkun aa3c79100b fix some format 2024-10-30 14:24:10 +08:00
Pengrongkun e9feec94b3 TD-32120:add api taos_stmt2_get_all_fields 2024-10-29 17:27:48 +08:00
Hongze Cheng f9405b35d3 fix: add tag length check in stmt 2024-10-14 14:21:38 +08:00
lyh250-666 5f6802e0a1 enh:modify addede rror code passing 2024-09-24 16:29:28 +08:00
Pan Wei 04663cb4b3
Merge pull request #28011 from taosdata/enh/TD-31691
Enh/td 31691
2024-09-23 08:54:34 +08:00
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