homework-jianmu/tests/system-test/2-query
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
..
Now.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
Timediff.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
To_iso8601.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
To_unixtimestamp.py fix test cases 2023-04-18 17:12:49 +08:00
Today.py fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
abs.py update 2022-11-18 18:14:52 +08:00
and_or_for_byte.py update 2022-11-18 18:14:52 +08:00
apercentile.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
arccos.py update 2022-11-18 18:14:52 +08:00
arcsin.py update 2022-11-18 18:14:52 +08:00
arctan.py update 2022-11-18 18:14:52 +08:00
avg.py fix(query): avg fix case error 2022-12-17 16:59:25 +08:00
between.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
blockSMA.py add sma test cases 2023-01-03 11:10:42 +08:00
bottom.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
case_when.py test: refine query cases 2023-02-07 10:38:48 +08:00
cast.py fix: fix test `cast.py` for windows (#20676) 2023-03-28 19:08:43 +08:00
ceil.py update 2022-11-18 18:14:52 +08:00
char_length.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
check_tsdb.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
columnLenUpdated.py Merge pull request #20691 from taosdata/feature/3_liaohj 2023-03-30 14:39:20 +08:00
concat.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
concat2.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
concat_ws.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
concat_ws2.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
cos.py update 2022-11-18 18:14:52 +08:00
count.py fix test cases 2022-11-29 19:45:18 +08:00
countAlwaysReturnValue.py add test cases 2022-11-28 01:00:34 +08:00
count_partition.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
csum.py fix test cases 2022-11-15 14:37:10 +08:00
db.py test: add test cases 2022-12-23 18:39:21 +08:00
diff.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
distinct.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
distribute_agg_apercentile.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
distribute_agg_avg.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
distribute_agg_count.py fix errors 2022-11-29 22:14:46 +08:00
distribute_agg_max.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
distribute_agg_min.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
distribute_agg_spread.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
distribute_agg_stddev.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
distribute_agg_sum.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
elapsed.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
explain.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
first.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
floor.py update 2022-11-18 18:14:52 +08:00
function_diff.py fix test cases 2022-11-15 14:37:10 +08:00
function_null.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
function_stateduration.py update 2022-11-18 17:18:01 +08:00
geometry.py Feature/3.0 geometry (#21037) 2023-05-24 15:36:46 +08:00
histogram.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
hyperloglog.py Merge branch '3.0' into fix/TD-20140 2022-11-04 09:44:28 +08:00
insert_null_none.py test:modify failed cases in ci 2023-01-13 10:30:43 +08:00
insert_select.py test: refine query cases 2022-11-23 16:37:39 +08:00
interp.py Merge pull request #21329 from taosdata/feat/TD-21187 2023-05-20 14:14:21 +08:00
irate.py fix: alpine support (#19353) 2023-02-10 13:00:55 +08:00
join.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
join2.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
json_tag.py fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
json_tag_large_tables.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
last.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
last_row.py fix test cases 2022-11-28 22:55:16 +08:00
last_row_interval.py fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
leastsquares.py test: add test case for leastsquares 2022-12-16 13:39:12 +08:00
length.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
limit.py fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
log.py update 2022-11-18 18:14:52 +08:00
lower.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
ltrim.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
mavg.py fix: remove test case has random results 2023-03-08 18:44:16 +08:00
max.py add test cases 2023-04-11 15:47:27 +08:00
max_min_data.py test: refine query cases 2023-02-07 10:39:05 +08:00
max_min_last_interval.py add test cases 2023-02-10 15:08:34 +08:00
max_partition.py fix(query): fix error 2022-11-27 14:57:44 +08:00
min.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
mode.py fix test case 2023-03-22 09:58:58 +08:00
nestedQuery.py test: refine query cases 2023-03-30 10:18:05 +08:00
nestedQueryInterval.py add test cases 2022-12-22 19:05:55 +08:00
nestedQuery_26.py test: refine query cases 2023-03-30 10:18:53 +08:00
nestedQuery_math.py test: refine query cases 2023-03-30 10:18:22 +08:00
nestedQuery_str.py test: refine query cases 2022-10-24 11:24:33 +08:00
nestedQuery_time.py test: refine query cases 2022-10-24 11:24:06 +08:00
odbc.py fix:modify ci 2023-05-23 17:52:24 +08:00
out_of_order.py merge main 2023-04-04 14:50:58 +08:00
percentile.py add test cases 2023-02-22 14:08:26 +08:00
pow.py update 2022-11-18 18:14:52 +08:00
projectionDesc.py fix: add order by string case 2023-03-03 11:54:25 +08:00
qnodeCluster.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
queryQnode.py fix: windows test (#20256) 2023-03-16 10:18:06 +08:00
query_cols_tags_and_or.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
round.py update 2022-11-18 18:14:52 +08:00
rtrim.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
sample.py fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
select_index.py test: refine query cases 2022-11-23 16:37:18 +08:00
select_null.py test: refine query cases 2023-04-24 10:30:10 +08:00
sin.py update 2022-11-18 18:14:52 +08:00
slimit.py test: refine query cases 2023-04-24 10:29:47 +08:00
smaTest.py test: adjust asan case 2022-11-24 11:45:40 +08:00
sml.py fix:[TS-3303]use stable name + child table name as key to save uid to avoid multi items for one table in submit block 2023-05-05 13:39:37 +08:00
spread.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
sqrt.py update 2022-11-18 18:14:52 +08:00
stablity.py test:modify failed cases in ci 2023-01-12 18:24:01 +08:00
stablity_1.py fix test cases 2022-11-15 14:37:10 +08:00
statecount.py update 2022-11-18 18:14:52 +08:00
stateduration.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
stddev.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
substr.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
sum.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
tagFilter.py fix: add tag filter case 2023-02-21 14:36:25 +08:00
tail.py update 2022-11-18 18:14:52 +08:00
tan.py update 2022-11-18 18:14:52 +08:00
timeerror.py fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
timetruncate.py fix timetruncate test cases 2022-12-05 12:00:50 +08:00
timezone.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
top.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
tsbsQuery.py fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
ttl_comment.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
twa.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
txt.txt update 2022-11-18 18:14:52 +08:00
union.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
union1.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
union2.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
union3.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
union4.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
unique.py fix(query): fix memory leak. 2023-02-14 22:46:31 +08:00
upper.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00
varchar.py test:add replica parameters for all testcase 2022-11-02 17:33:44 +08:00