Commit Graph

94 Commits

Author SHA1 Message Date
chenhaoran a55d5c5e14 test: modify test case of tsma for clusters 2024-04-16 14:25:35 +08:00
chenhaoran 39b4e205fc test: modify test case of tsma for restful 2024-04-16 14:25:35 +08:00
Chris Zhai cba77f9f72 update test cases for ts-4221- v5 2024-03-22 14:31:15 +08:00
Chris Zhai 9bf540a1b2 update test case for ts-4421 - v2 2024-03-20 17:35:21 +08:00
Chris Zhai 843ecffc66 add test cases for ts-4211 - v1 2024-03-19 19:19:25 +08:00
zk66214 2365054ada add common function no_error to TDsql 2024-01-18 20:09:03 +08:00
chenhaoran f6eccf10ed test: modify testcase of tmqvnodesplit 2024-01-16 19:15:12 +08:00
chenhaoran db9655c549 test: save case.sql when case is failed and set default saved sqlfile True 2024-01-05 17:07:24 +08:00
chenhaoran 536c002ae4 test: modify test of last_cache_scan.py 2023-12-22 16:48:57 +08:00
chenhaoran f564e3f7bf test: modify test of last_cache_scan.py 2023-12-21 18:43:40 +08:00
zk66214 7887af1606 Add test cases for TD-27403 2023-12-11 17:09:12 +08:00
charles a72d87b3ff add non marterial test cases and update sql.error function by charles 2023-11-06 18:59:34 +08:00
chenhaoran 92eb1e9671 test: check error info of failed sql 2023-09-22 16:08:37 +08:00
Alex Duan 0e6486e3ec test: sql.py remove successful print and add diff case 2023-09-15 14:28:45 +08:00
jiajingbin 10cd04349d test: add stream cases 2023-09-01 20:43:56 +08:00
Alex Duan 9085dac1a2 add create sma index case 2023-07-14 16:31:37 +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
Haojun Liao 72ddd1676d refactor: do some internal refactor. 2023-04-23 13:31:41 +08:00
Xuefeng Tan cebe53a483
fix: fix test `cast.py` for windows (#20676) 2023-03-28 19:08:43 +08:00
t_max d4a81c11d2 fix: fix check timestamp data 2023-03-23 14:07:43 +08:00
t_max 6e66b74b38 fix: fix check timestamp data 2023-03-23 14:00:48 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
Alex Duan 6eeddb4b53 add case feature function with loop check data 2022-12-30 15:19:44 +08:00
jiacy-jcy 0d7787387b test:add test case for boundary check 2022-11-17 16:58:04 +08:00
cpwu bea875aea7 add case to support rest API 2022-08-19 17:46:24 +08:00
cpwu 8ae2907dcb fix sql 2022-08-18 11:14:20 +08:00
cpwu 53e3b2e5f5 fix case, add case support rest api 2022-08-18 11:14:05 +08:00
tomchon 9e32cd4fca test: modify testcases of muti-mnodes 2022-08-06 21:30:38 +08:00
cpwu 737f623d81 fix case 2022-07-30 17:38:46 +08:00
cpwu 5b06d8dff6 fix case 2022-07-26 14:31:36 +08:00
Hui Li 74edf683dd
Merge pull request #15126 from taosdata/cpwu/3.0
Test: fix case support rest API
2022-07-21 11:50:53 +08:00
tomchon 5ca7dd62db test:modify testcase of muti-mnode 2022-07-19 21:25:17 +08:00
cpwu 349cb292fa Merge branch '3.0' into cpwu/3.0 2022-07-18 09:45:31 +08:00
cpwu 935535b087 fix case 2022-07-16 15:58:23 +08:00
cpwu 028dba3c46 fix case 2022-07-16 11:45:43 +08:00
cpwu acc27d46e9 fix case 2022-07-15 15:06:38 +08:00
tomchon d554bf6588 test:modify test frame that add multiple retries for sql execution and query 2022-07-14 21:22:43 +08:00
tomchon e8a0cf5b75 test:add test case of tsbs query 2022-07-14 21:11:39 +08:00
cpwu 4b73cdb529 fix case 2022-06-30 15:34:38 +08:00
cpwu 7e6ddc7a6f fix case 2022-06-25 10:37:23 +08:00
cpwu f000a2df96 fix case 2022-06-23 19:53:48 +08:00
cpwu 12780bed9b fix case 2022-06-16 09:30:25 +08:00
tomchon 0e019d363e Merge branch '3.0' of github.com:taosdata/TDengine into test/chr/TD-14699 2022-06-15 18:47:36 +08:00
tomchon 4ee4266e3c test:modify testcase of muti-mnode 2022-06-15 18:14:11 +08:00
Xiaoyu Wang f740fd61c6 fix: use 'duration' instead of 'days' for create database 2022-06-15 14:23:05 +08:00
plum-lihui 534dfae907 [test: set days to 300 for default db] 2022-05-18 22:06:59 +08:00
plum-lihui 265f2a8582 test: add get rows api in test frame 2022-05-12 16:36:08 +08:00
jiacy-jcy 24ac70fc41 update 2022-04-27 08:31:11 +08:00
plum-lihui b790102ffd [test: add sleep for elect leader] 2022-04-22 18:50:21 +08:00
Shuduo Sang 2c1ec0dd10
[TD-13603]<feature>: python connector for 3.0 (#11152)
* add a few stmt_ interface declartion

* add taos_load_table_info

* add taos_set_config(() interface

* add more interfaces

* warn 'reset query cache' only since lack engine support

* update taos-tools
2022-03-31 11:32:23 +08:00