TDengine/tests/pytest
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
..
account enh: show command optimize 2022-08-11 20:56:31 +08:00
alter enh: show command optimize 2022-08-11 21:55:20 +08:00
client enh: show command optimize 2022-08-11 21:55:20 +08:00
cluster enh: show command optimize 2022-08-11 21:55:20 +08:00
connector [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
crash_gen build: delete TaosConsumer and TaosTmq from taospy (#20076) 2023-02-21 19:00:50 +08:00
dbmgmt enh: show command optimize 2022-08-11 21:55:20 +08:00
dockerCluster fix: correct wrong parameter thread_count_create_tbl 2022-08-06 10:48:50 +08:00
functions enh: show command optimize 2022-08-11 21:55:20 +08:00
import_merge [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
insert test: fix old pytest to make them pass with 3.0 2023-05-17 21:33:33 -04:00
manualTest enh: show command optimize 2022-08-11 21:55:20 +08:00
multilevel fix: use 'duration' instead of 'days' for create database 2022-06-15 14:23:05 +08:00
perfbenchmark enh: show command optimize 2022-08-11 21:55:20 +08:00
query test: fix old pytest to make them pass with 3.0 2023-05-17 21:33:33 -04:00
random-test [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
restful enh: show command optimize 2022-08-11 21:55:20 +08:00
stable [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
stream enh: show command optimize 2022-08-11 21:55:20 +08:00
subscribe [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
table enh: show command optimize 2022-08-11 21:55:20 +08:00
tag_lite enh: show command optimize 2022-08-11 21:55:20 +08:00
test_data [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
TimeZone [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
tools feat: update taostools for3.0 (#16588) 2022-09-01 22:18:05 +08:00
tsdb enh: show command optimize 2022-08-11 21:55:20 +08:00
update fix: use 'duration' instead of 'days' for create database 2022-06-15 14:23:05 +08:00
user [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
util Feature/3.0 geometry (#21037) 2023-05-24 15:36:46 +08:00
wal enh: show command optimize 2022-08-11 21:55:20 +08:00
a.sh fix:disable ttl temporary 2022-06-29 10:36:48 +08:00
auto_crash_gen.py Merge branch 'main' into test/update_push_message 2023-05-09 18:11:39 +08:00
auto_crash_gen_valgrind.py Merge branch 'main' into test/update_push_message 2023-05-09 18:04:11 +08:00
auto_crash_gen_valgrind_cluster.py Merge branch 'main' into test/update_push_message 2023-05-09 18:04:11 +08:00
auto_run_regular.sh test: enh crash_gen function and let it run 2022-10-30 18:55:22 +08:00
auto_run_valgrind.sh test: enh crash_gen function and let it run 2022-10-30 18:55:22 +08:00
auto_run_valgrind_cluster.sh test: enh crash_gen function and let it run 2022-10-30 18:55:22 +08:00
bug2265.py [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
concurrent_inquiry.py update query script 2022-11-04 15:39:11 +08:00
concurrent_inquiry.sh fix(build): exec output build bin. 2022-04-16 15:12:11 +08:00
crash_gen.sh enh crash_gen for 3.0 about [stream processing] , [data subscription] ,[delete data] 2022-11-09 18:42:01 +08:00
crash_gen_bootstrap.py [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
docker_exec_service.sh add docker run exec script 2022-11-22 16:08:14 +08:00
fulltest.bat fix(os): windows timezone error 2022-05-27 19:00:48 +08:00
fulltest.sh [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
handle_crash_gen_val_log.sh [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
handle_taosd_val_log.sh fix(build): exec output build bin. 2022-04-16 15:12:11 +08:00
handle_val_log.sh [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
hivemq-extension-test.py [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
perf_gen.py [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
perf_gen.sh fix(build): exec output build bin. 2022-04-16 15:12:11 +08:00
queryCount.py [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
regressiontest.sh [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
simpletest_no_sudo.sh [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
smoketest.sh feat(tools): demoapi implemented normal insert/query (#11553) 2022-04-16 12:18:07 +08:00
test-all.bat fix(os): windows timezone error 2022-05-27 19:00:48 +08:00
test.py fix(os): add win32 query case 2022-06-07 09:49:09 +08:00
test.sh fix(build): exec output build bin. 2022-04-16 15:12:11 +08:00
testCompress.py [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
testMinTablesPerVnode.py [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
testNoCompress.py [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
valgrind-test.sh [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00
ZoneTimeTest.py [TD-13408]<test>: move tests in for3.0 (#10598) 2022-03-07 19:25:29 +08:00