Commit Graph

320 Commits

Author SHA1 Message Date
Alex Duan 0e6486e3ec test: sql.py remove successful print and add diff case 2023-09-15 14:28:45 +08:00
chenhaoran 3217f69428 test: fix error comparison between bool and str 2023-09-07 19:08:12 +08:00
chenhaoran 7782530e3a test:modify method of stopall function 2023-09-06 17:21:26 +08:00
jiajingbin 9c66c81e1d
Merge branch 'main' into fix/test_1x 2023-09-01 20:46:29 +08:00
jiajingbin 99a0a15385 test: resume three functions in common.py 2023-09-01 20:43:57 +08:00
jiajingbin e073e1c1ae test: add stream cases 2023-09-01 20:43:57 +08:00
jiajingbin 10cd04349d test: add stream cases 2023-09-01 20:43:56 +08:00
jiajingbin da93dc45fc test: update 2023-09-01 20:43:56 +08:00
jiajingbin 7450a8584d update 2023-09-01 20:43:56 +08:00
jiajingbin ae100c06e3 update 2023-09-01 20:43:56 +08:00
jiajingbin 91269075c7 test: add stream cases 2023-09-01 20:43:43 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
chenhaoran a0c5d130ae test:repire test case for windows 2023-08-07 18:32:58 +08:00
Hui Li 1bc8c751a5
Merge pull request #22064 from taosdata/test/TD-24996
test:add testcase of rolling upgdade
2023-07-17 10:49:37 +08:00
Alex Duan 9085dac1a2 add create sma index case 2023-07-14 16:31:37 +08:00
chenhaoran f5e3e574ae test:add testcase of rolling upgdade 2023-07-07 16:19:39 +08:00
dmchen 0e41f82bb7 test case parameter 2023-05-25 11:26:11 +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
wade zhang 1ade314043
Merge pull request #21325 from taosdata/feat/force-drop-dnode
Feat/force drop dnode
2023-05-19 09:23:54 +08:00
dmchen 32c6ef4b6e fix ci 2023-05-17 23:09:16 +08:00
Alex Duan 89be6dbdeb test: reset dnodes modify and add test case 2023-05-16 19:07:16 +08:00
Alex Duan 1ccf9ed4ff test: add cluster global tdDnodes 2023-05-16 10:03:18 +08:00
chenhaoran 2abb14a080 test:add testcases of learner in election 2023-05-11 10:33:49 +08:00
Haojun Liao 72ddd1676d refactor: do some internal refactor. 2023-04-23 13:31:41 +08:00
Alex Duan e03a6c2f35 test: autogen.py remove radom select 2023-04-10 16:45:59 +08:00
Alex Duan 927390f38e test: change random to fixed 2023-04-07 11:00:53 +08:00
Alex Duan 1f953a422d Merge branch '3.0' into test/TD-22889-3.0 2023-03-29 09:32:32 +08:00
Xuefeng Tan cebe53a483
fix: fix test `cast.py` for windows (#20676) 2023-03-28 19:08:43 +08:00
Alex Duan 1434fea2de Merge branch '3.0' into test/TD-22889-3.0 2023-03-24 10:18:14 +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
Alex Duan 6345952f88 test: debug python file 2023-03-22 20:30:25 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
Xuefeng Tan 449f7115e4
fix: windows test (#20256)
* fix: windows sim test

* fix: windows sim test

* fix: random on windows

* fix: taosd online check

* fix: windows path in python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: windows python test

* fix: make_install.bat

* fix: python test

* fix: jdbc test

* fix: develop test

* fix: develop test

* fix:add log

* test:add win case file

* test:add win case file

* test:add win case file

* fix: python test get taosBenchmark path

* test:add win case file

* test:comment some failed cases in win

* test:add win case file

* test:add win case file

* test:comment some win case file

* test:add some win case file

---------

Co-authored-by: wangmm0220 <wangmm0220@gmail.com>
Co-authored-by: chenhaoran <haoran920c@163.com>
2023-03-16 10:18:06 +08:00
Haojun Liao 3730ea4b57 test: update the sim to speedup this case and set the tqdebugflag to be 135. 2023-03-02 10:00:00 +08:00
Shuduo Sang ea5d925c50
fix: alpine support (#19353)
* fix: alpine support

* fix: ostimer thread_id

* fix: taosPrintTrace and tsStreamMax

* fix: make_install.sh and dnodes.py for alpine

* fix: cmake.platform and cut option for alpine

* fix: timer sigev and string convert

* fix: test case for alpine

* fix: fix test script for alpine

* fix: fix test script for alpine

* fix: fix taosLogTrace for Alpine

* fix: fix taosSort

* fix: vnode and mnode compare functions and test cases

* fix: sorting algorithms and unit tests

* fix: libtaosws.so build error on Alpine

* fix: libtaosws.so build error on Alpine

---------

Co-authored-by: t_max <1172915550@qq.com>
2023-02-10 13:00:55 +08:00
wangmm0220 b493b8d2e1 fix:cols error because delete json cols value 2023-01-28 10:33:00 +08:00
Alex Duan 6eeddb4b53 add case feature function with loop check data 2022-12-30 15:19:44 +08:00
Shengliang Guan 664dcb6b4e Merge branch 'main' into merge/mainto3.0_1226 2022-12-26 09:26:54 +08:00
Ping Xiao 3c5f07f70b test: add test cases 2022-12-23 18:39:21 +08:00
Ping Xiao 889872c24d test: update script to stop taosadapter service 2022-12-21 19:31:28 +08:00
chenhaoran a1415183b5 test:modify default vnodes numbers in create clusters 2022-12-16 15:11:02 +08:00
Benguang Zhao f1991ac882 enh: improve runOneLinux and TDTestCase of python test scripts 2022-11-29 17:19:47 +08:00
Shengliang Guan 099b80906f test: adjust cluster case for asan mode 2022-11-28 11:19:02 +08:00
Shengliang Guan 2dc23cdfe5 test: adjust tmqCommon cases 2022-11-27 17:49:23 +08:00
Shengliang Guan 991795ca6e test: add asan case 2022-11-24 13:52:09 +08:00
Shengliang Guan 15c0bb9446 test: python asan 2022-11-20 21:26:54 +08:00
Shengliang Guan 40b2d3673b test: python asan 2022-11-20 15:04:44 +08:00
Shengliang Guan 5831efd379 test: adjust asan dir 2022-11-20 12:23:59 +08:00
Shengliang Guan 0464a21d0e test: adjust pytest frame 2022-11-19 22:57:38 +08:00