Commit Graph

87 Commits

Author SHA1 Message Date
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 f79eeb3032 fix: add stmt error handling 2023-04-04 08:54:28 +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
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
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 a0f7cc6790 enh: add schedule policy 2022-07-14 14:03:27 +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