TDengine/source/dnode/mnode/impl/src
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
..
mndAcct.c refact: adjust error codes 2022-12-02 23:10:12 +08:00
mndCluster.c null pointer 2023-04-10 19:12:13 +08:00
mndConsumer.c other: merge main. 2023-05-12 11:49:53 +08:00
mndDb.c Merge pull request #21282 from taosdata/feature/TD-23117 2023-05-24 14:54:42 +08:00
mndDef.c refactor(tqm): do some internal refactor. 2023-05-02 22:51:13 +08:00
mndDnode.c Merge pull request #21358 from taosdata/feat/TD-23362-3.0 2023-05-20 14:09:20 +08:00
mndDump.c feat:[TD-23117] add schema for ins_topics 2023-05-12 18:14:43 +08:00
mndFunc.c Feature/3.0 geometry (#21037) 2023-05-24 15:36:46 +08:00
mndGrant.c merge main 2023-02-23 14:58:22 +08:00
mndIndex.c fix coverity scan problem 2023-03-17 02:26:18 +00:00
mndIndexCom.c fix iter and case 2023-02-18 18:24:10 +08:00
mndInfoSchema.c refact: remove TSDB_CODE_APP_NOT_READY and TSDB_CODE_NODE_NOT_DEPLOYED 2022-12-02 16:06:10 +08:00
mndMain.c other: merge main. 2023-05-12 11:49:53 +08:00
mndMnode.c feat/restore dnode 2023-05-09 17:15:37 +08:00
mndPerfSchema.c refact: remove TSDB_CODE_APP_NOT_READY and TSDB_CODE_NODE_NOT_DEPLOYED 2022-12-02 16:06:10 +08:00
mndPrivilege.c feat: table level privilege 2023-04-07 16:39:40 +08:00
mndProfile.c other: merge main. 2023-05-17 15:42:15 +08:00
mndQnode.c feat/restore dnode 2023-05-09 17:15:37 +08:00
mndQuery.c fix: fix asan issues 2022-11-17 16:31:22 +08:00
mndScheduler.c fix(stream): remove unused tqreader, do some internal refactor, set the meta value for streamtask. 2023-04-14 12:00:09 +08:00
mndShow.c fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
mndSma.c feat: add client meta limitation 2023-05-10 17:44:53 +08:00
mndSnode.c refactor:do some internal refactor. 2023-02-20 10:04:08 +08:00
mndStb.c Feature/3.0 geometry (#21037) 2023-05-24 15:36:46 +08:00
mndStream.c fix pause agg task 2023-05-18 15:29:41 +08:00
mndSubscribe.c Merge pull request #21177 from taosdata/fix/TD-23972 2023-05-08 20:29:31 +08:00
mndSync.c add learner 2023-04-18 19:03:45 +08:00
mndTelem.c Merge remote-tracking branch 'origin' into enh/TD-21108 2023-01-04 08:57:22 +08:00
mndTopic.c feat:[TD-23117] fix overflow in stack & add test case 2023-05-12 19:43:16 +08:00
mndTrans.c Merge pull request #21136 from taosdata/fix/transaction-multithread 2023-05-07 14:47:25 +08:00
mndUser.c other: merge main. 2023-05-12 11:49:53 +08:00
mndVgroup.c comfirm msg when add learner 2023-05-24 11:08:41 +08:00