Commit Graph

79 Commits

Author SHA1 Message Date
wangmm0220 9cd8df12c2 fix:memory leak 2023-08-25 16:32:01 +08:00
wangmm0220 26e025d78d feat:[TD-18789]support varbinary type 2023-08-25 15:43:45 +08:00
wangmm0220 f266d51764 feat:support varbinary type 2023-08-16 19:05:07 +08:00
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +08:00
Shungang Li 308ba7a02e fix: type geometry predicates support
support "=, <>, is null, is not null, in, not in"
2023-06-29 09:44:51 +08:00
Haojun Liao 5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +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 5bedf6b19a enh: support config batch rows number when import data from csv file 2023-05-23 19:21:52 +08:00
Xiaoyu Wang e584bb3ea1 feat: subtable level privilege 2023-04-25 17:39:28 +08:00
Xiaoyu Wang 8b8ac0cd77 merge main 2023-04-12 10:43:28 +08:00
Xiaoyu Wang 4c04b155d5 merge main 2023-04-11 15:56:28 +08:00
Xiaoyu Wang 42a5a87e96 fix: table level privilege 2023-04-11 15:08:42 +08:00
Xiaoyu Wang 0f2c753103 feat: table level privilege 2023-04-07 16:39:40 +08:00
dapan1121 a61279ed71 Merge branch 'feat/table_level_privilege' of github.com:taosdata/TDengine into feat/table_level_privilege 2023-04-06 10:02:26 +08:00
dapan1121 d768f49dd7 feat: table level user auth 2023-04-06 10:01:27 +08:00
Xiaoyu Wang 6825b196ef feat: table level write privilege check 2023-04-04 17:19:18 +08:00
Xiaoyu Wang ca2e566319 enh: improve error reporting information 2023-03-23 17:56:56 +08:00
Xiaoyu Wang e15e40abdf enh: improve error reporting information 2023-03-23 14:15:49 +08:00
Haojun Liao 22aa03307c fix(query): fix syntax errors on centos. 2023-02-24 11:38:54 +08:00
Xiaoyu Wang 09925437e3 merge main 2023-02-08 09:51:52 +08:00
Xiaoyu Wang 2b4adceb93 fix: insert syntax error 2023-02-06 11:07:51 +08:00
Xiaoyu Wang 115160bbd0 fix: insert syntax error 2023-02-05 10:11:26 +08:00
Xiaoyu Wang 5d499e52f9 merge main 2023-02-03 17:13:11 +08:00
Xiaoyu Wang f6df973d4d fix: no cache auto create table error 2023-02-01 10:15:42 +08:00
Xiaoyu Wang 68ac5e5289 enh: clear assert and fix coverity scan 2023-01-04 16:46:02 +08:00
Xiaoyu Wang b686e1fd4d enh: delete useless code 2022-12-28 10:49:38 +08:00
Xiaoyu Wang 0c269c317b merge 3.0 2022-12-23 17:50:05 +08:00
Shengliang Guan 86ff8f381f
Merge pull request #19042 from taosdata/enh/3.0_planner_optimize
enh: improve unit tests
2022-12-20 21:53:25 +08:00
Xiaoyu Wang ad7f9b274b enh: improve unit tests 2022-12-20 16:53:08 +08:00
Xiaoyu Wang f6d953e62d fix: disable insert csv statements on cloud services 2022-12-19 16:40:40 +08:00
Haojun Liao 709c7d426c fix(query): fix error. 2022-12-19 11:55:53 +08:00
Shengliang Guan 6e64951c3f
Merge pull request #18995 from taosdata/fix/main_bugfix_wxy
fix: user auth error
2022-12-19 11:53:15 +08:00
Haojun Liao fdade6d6a3
Merge branch '3.0' into refact/submit_req 2022-12-19 11:24:00 +08:00
Xiaoyu Wang 6868e57351 fix: user auth error 2022-12-19 10:25:14 +08:00
dapan1121 49bcb15fab enh: ignore head line in cvs file 2022-12-14 16:34:56 +08:00
Haojun Liao 48f7fc5c3d
Merge branch '3.0' into refact/submit_req 2022-12-12 18:11:17 +08:00
dapan1121 bb0c337e43 fix: client retry issue 2022-12-09 10:06:07 +08:00
dapan1121 43a349bc1e fix: fix crash caused by null pointer 2022-12-09 07:12:57 +08:00
Xiaoyu Wang 23a3a69ddd enh: merge getmetafromcache and getvgroupfromcache interface 2022-12-08 16:19:48 +08:00
Xiaoyu Wang 44b2cd1b73 enh: merge getmetafromcache and getvgroupfromcache interface 2022-12-08 15:24:34 +08:00
dapan1121 39d35538a3 fix: fix compile error 2022-12-08 13:53:16 +08:00
Xiaoyu Wang d5e3d750d1 enh: merge getmetafromcache and getvgroupfromcache interface 2022-12-08 11:14:06 +08:00
Xiaoyu Wang eff1b07886 fix: merge conflict 2022-12-07 19:12:55 +08:00
Xiaoyu Wang 9e5274df99
Merge branch '3.0' into refact/submit_req 2022-12-07 18:48:09 +08:00
dapan1121 217694fd13 fix: client retry insert based on some error code 2022-12-07 15:28:07 +08:00
Xiaoyu Wang fbdd37bee9 fix: insert varchar error 2022-12-07 10:29:17 +08:00
Xiaoyu Wang ca26f55032 fix: memory leak 2022-12-06 20:40:18 +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
Xiaoyu Wang 338969ccc4 fix: insert float error 2022-12-04 10:09:10 +08:00
Shengliang Guan d9c261cd13 refact: remove some error codes 2022-12-03 10:17:02 +08:00