Commit Graph

54 Commits

Author SHA1 Message Date
Hongze Cheng ac1d7c2bdb fix compile error 2024-02-27 10:08:02 +08:00
kailixu 17ae867ec6 fix: grammar of init on windows 2024-02-26 09:07:11 +08:00
kailixu bc456e6183 fix: grammar of init on windows 2024-02-26 08:51:06 +08:00
kailixu 785d1672b8 test: add test for dataformat 2024-02-26 02:05:00 +08:00
kailixu c54dfc36c2 enh: coverity for dataformatTest 2024-02-26 01:35:18 +08:00
kailixu 4ceb085613 enh: coverity of trow 2024-02-26 01:03:08 +08:00
Yihao Deng 20aa81c96a add test case 2024-01-22 09:00:24 +00:00
Bob Liu 9fa884a693 toUIntegerEx 2023-12-06 01:24:23 +08:00
Bob Liu d2b2dee256 opt & add test case 2023-12-05 22:00:33 +08:00
Bob Liu 7e8f3579de accept float data as int data input 2023-12-01 18:33:01 +08:00
wangjiaming0909 ea5adf5511 report not supported error when DDD but no DD specified 2023-11-09 20:20:00 +08:00
wangjiaming0909 b71a013b8d fix: nano seconds database error 2023-11-02 09:36:46 +08:00
wangjiaming0909 70850697a4 feat: support to_timestamp/to_char fix comments 2023-10-27 09:54:16 +08:00
wangjiaming0909 f299a28109 feat: support to_timestamp/to_char 2023-10-23 19:36:03 +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
Xiaoyu Wang 1ab144609e merge main 2023-02-23 14:58:22 +08:00
Haojun Liao 8d187efc18 refactor:do some internal refactor. 2023-02-20 10:04:08 +08:00
Hongze Cheng c1db8a9e4d refact code 2022-11-23 20:13:27 +08:00
Hongze Cheng ac0ac3a577 Merge branch 'enh/cv_optimize' of https://github.com/taosdata/TDengine into feat/stream_compression 2022-09-23 19:08:21 +08:00
Hongze Cheng cac18913d5 make it unit test compile 2022-09-23 19:07:18 +08:00
Hongze Cheng f870f7e453 fix gtest compile error 2022-09-21 16:08:51 +08:00
Cary Xu 0f5983ad88 fix: merge dup rows in client 2022-07-20 20:30:54 +08:00
Hongze Cheng 31d3ae244e make it compile 2022-07-12 02:19:38 +00:00
Hongze Cheng 85b4896fa4 more row refact 2022-07-11 12:48:16 +00:00
Haojun Liao 14ddf539e0 refactor(query): do some internal refactor. 2022-06-22 17:21:04 +08:00
Cary Xu 8997f2cdc1 fix: solve a non-standard explicit type conversion 2022-06-09 16:26:30 +08:00
Cary Xu fb3b66413e enh: code optimization for trow 2022-06-09 15:13:58 +08:00
Cary Xu 08a19b7b28 enh: set 0 in flen part for tsrow 2022-06-09 15:00:48 +08:00
Cary Xu c9b0b7cd76 feat: add test case for tsrow 2022-06-09 11:53:50 +08:00
Hongze Cheng 96eecc4d3e more refact 2022-05-16 11:43:48 +00:00
Hongze Cheng de5828e485 refact more 2022-05-16 11:35:37 +00:00
Xiaoyu Wang 41e36dddb7 fix: some problems of parser 2022-05-11 19:03:59 +08:00
Hongze Cheng 57d642b9b4 Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/vnode_refact1 2022-04-22 05:33:29 +00:00
afwerar fc24521621 fix(os): windows compile 3.0. 2022-04-22 09:54:27 +08:00
Hongze Cheng 3cc66adcb7 refact meta 1 2022-04-19 13:10:03 +00:00
afwerar 2662a3b69d [TD-13254]<fix>: make 3.0 grant. 2022-04-10 19:08:16 +08:00
Haojun Liao 6c332af1ae [td-13039] support sort. 2022-03-28 20:11:02 +08:00
afwerar 222db126bc [TD-13758]<fix>: redefine memory api. 2022-03-26 00:29:53 +08:00
Haojun Liao 459b0ef442 [td-13039] refactor. 2022-03-09 10:22:53 +08:00
Haojun Liao cde3e97061 [td-13039] merge 3.0. 2022-03-04 14:31:21 +08:00
Haojun Liao 92da01a8ba [td-13039] refactor. 2022-03-04 13:25:39 +08:00
afwerar 35b3edaea5 [TD-13756]<fix>: file system stat access func. 2022-03-04 00:04:57 +08:00
Shengliang Guan 5891779fe1 common 2022-02-28 17:55:07 +08:00
Haojun Liao b95e95dc0a [td-13039] fix bug in sorted merge operator. 2022-02-22 13:12:03 +08:00
Haojun Liao b0ecf20975 [td-11818] fix memory leak. 2022-02-08 18:01:21 +08:00
Haojun Liao ab45cd6611 [td-11818]refactor sort operator. 2022-02-04 22:41:54 +08:00
Shengliang Guan 2e14f63453 Remove warnings 2022-01-21 02:19:40 -08:00
Hongze Cheng a514dfe470 more work 2021-12-29 09:20:10 +00:00
Hongze Cheng 75ac5b00a5 make compile 2021-12-24 15:55:06 +08:00
Hongze Cheng 9acdf1e975 take a commit 2021-12-24 15:00:51 +08:00