Commit Graph

30 Commits

Author SHA1 Message Date
dapan1121 3835a5b349 fix: error log and union issue 2024-03-22 08:47:07 +08:00
Shungang Li de631e20a5 fix: refactor logdebugs 2024-01-03 19:57:22 +08:00
dapan1121 ff894fd70b fix: sim error message issue 2023-11-24 16:32:13 +08:00
slzhou 484854b4fa Merge branch 'szhou/star-tbname' of github.com:taosdata/TDengine into szhou/star-tbname 2023-09-22 13:34:26 +08:00
slzhou d858b26939 enhance: add bi mode to script 2023-09-22 13:34:14 +08:00
shenglian zhou 1b71cd4b8d fix: add $cols to script support 2023-09-22 13:29:17 +08:00
kailixu 8d0461e98c fix: use taos_static for tmq_sim on windows 2023-08-14 16:31:58 +08:00
kailixu f70709be3c fix: run sim cases on windows 2023-07-28 14:54:03 +08:00
dapan1121 1ca24fea6b
Merge pull request #21742 from wangjiaming0909/feature/3.0/TD-24656
feature: add input, output ts order for execution plans
2023-06-18 19:24:29 +08:00
wangjiaming0909 fb4f174fbc feature: add input, output ts order for execution plans 2023-06-16 10:26:09 +08:00
yihaoDeng 52d81476be change link opt 2023-06-07 07:33:35 +00: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
Ganlin Zhao 23ec9287c9 fix: fix tsim crash on windows due to invalid input to strftime 2023-04-04 10:33:41 +08:00
Ganlin Zhao 6c64b760a0 fix: fix tsim crash on windows due to invalid input to strftime 2023-04-03 17:58:43 +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
Minglei Jin 298296a6ac fix(tsim): ignore return value of taos fsync 2023-02-22 14:46:43 +08:00
Shengliang Guan c2323db00d fix: allow the ip resolved by fqdn different between dnodes 2022-12-30 17:04:14 +08:00
Shengliang Guan 025c92586f Merge remote-tracking branch 'origin/3.0' into enh/TD-19660 2022-10-20 11:45:56 +08:00
Shengliang Guan 5c928eac6a fix: improve test coverage 2022-10-20 10:16:49 +08:00
Liu Jicong 63096c9d43 fix(sim): buffer size not enough 2022-10-20 09:35:41 +08:00
Shengliang Guan 985e6f53e4 Merge branch '3.0' into FIX/TD-19593-3.0 2022-10-19 19:06:03 +08:00
Benguang Zhao 0930f1b742 fix: disable the -Wformat-y2k compiler option to keep tsim testcases from affected 2022-10-19 16:13:14 +08:00
Shengliang Guan 96ca18e61e Merge remote-tracking branch 'origin/3.0' into enh/TD-19623 2022-10-19 11:18:21 +08:00
Shengliang Guan 8764cf9adb refact: remove multi process codes 2022-10-19 11:08:42 +08:00
Benguang Zhao 00a066443f Merge branch '3.0' into FIX/TD-19593-3.0 2022-10-19 09:38:36 +08:00
Benguang Zhao 3b0968d7f9 enh: enable the -Wformat=2 compiler option 2022-10-19 09:24:15 +08:00
Shengliang Guan 797ed80f70 enh: comment out unused codes in tsim 2022-10-18 18:08:49 +08:00
Shengliang Guan e98335bdfa fix: coverity issues 2022-10-08 11:29:46 +08:00
Shengliang Guan eead619f1a fix: coverity issues 2022-09-27 17:10:48 +08:00
Shuduo Sang c984fcaee0
chore: move few tests items out (#16637)
* chore: move few tests items out

* fix: add taos as dep to tmq_demo
2022-09-03 07:09:13 +08:00