homework-jianmu/source/libs/planner/test
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
..
CMakeLists.txt test: fix Mac test error 2022-07-06 20:47:38 +08:00
planBasicTest.cpp add test cases 2022-12-15 10:55:11 +08:00
planDistinctTest.cpp feat: support partition by expression and aggregate function output together 2022-06-25 10:29:44 +08:00
planEventTest.cpp event window query 2022-12-13 14:18:03 +08:00
planGroupByTest.cpp fix: avg function data scan optimization 2022-09-22 15:08:07 +08:00
planIntervalTest.cpp fix: fill clause error 2022-08-12 18:18:16 +08:00
planJoinTest.cpp fix: join validity check 2022-09-22 16:54:39 +08:00
planLimitTest.cpp enh: refactor unit test of parser and planner 2022-04-28 21:02:11 +08:00
planOptimizeTest.cpp fix: wrong permissions of 'show variables' command 2022-10-24 16:34:10 +08:00
planOrderByTest.cpp fix: some problems of planner 2022-07-30 13:14:44 +08:00
planOtherTest.cpp feat: support writing streams to existing tables 2022-12-30 14:14:03 +08:00
planPartByTest.cpp fix: plan problem with 'partition by tag group by tag' statement 2022-10-18 15:01:52 +08:00
planProjectTest.cpp feat: add physical plannode of indefinite rows func 2022-05-31 11:29:10 +08:00
planSTableTest.cpp fix: a problem of interval distributed split 2022-06-10 14:28:58 +08:00
planSessionTest.cpp feat: split session and state window on stable 2022-06-23 08:52:47 +08:00
planSetOpTest.cpp fix: parsing conflicts 2022-09-16 19:54:46 +08:00
planStateTest.cpp fix: state_window error 2022-11-08 11:35:12 +08:00
planStmtTest.cpp Feature/3.0 geometry (#21037) 2023-05-24 15:36:46 +08:00
planSubqueryTest.cpp fix: some problems of parser and planner 2022-08-01 15:54:53 +08:00
planSysTbTest.cpp enh: ins_tables optimize 2022-11-21 18:44:04 +08:00
planTestMain.cpp fix: query information_schema.ins_tags error 2022-09-30 14:43:51 +08:00
planTestUtil.cpp feat: add stream option 'delete_mark' 2022-12-06 16:07:11 +08:00
planTestUtil.h enh: added memory allocators for parser and planner 2022-09-20 16:13:08 +08:00