Commit Graph

236 Commits

Author SHA1 Message Date
Hongze Cheng 713deac25e fix update code 2023-06-26 13:10:01 +08:00
Haojun Liao 5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +08:00
dapan1121 23bcfc2fd0 enh: stmt column length validation 2023-05-31 09:16:47 +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
Hongze Cheng d6d0bf0e41 enh: add varchar sma 2023-05-24 10:47:26 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
Haojun Liao 09a04052ec refactor: do some internal refactor. 2023-05-04 16:15:14 +08:00
Minglei Jin a1fba2df65 Merge branch '3.0' into fix/TD-23623 2023-04-26 17:38:47 +08:00
Minglei Jin 2566bd4ae8 row/iter: fix null column iter 2023-04-25 16:17:58 +08:00
dapan1121 f22d279f5f
Merge pull request #21057 from taosdata/feat/TD-19567
feat: support log slow query by default
2023-04-25 13:43:34 +08:00
dapan1121 de1161dafb enh: ignore single row null data type validation 2023-04-24 19:22:44 +08:00
dapan1121 9551a269b3 feat: support log slow query by default 2023-04-24 16:45:34 +08:00
dapan1121 4a9d62b467 enh: ignore single row null data type validation 2023-04-19 10:18:41 +08:00
wangmm0220 c1b4f94199 fix:add assert for debug 2023-03-29 22:12:13 +08:00
wangmm0220 d9b3c638c3 fix:add assert for debug 2023-03-29 21:03:39 +08:00
wangmm0220 8823997941 fix:case error & add NONE for rows to col mode 2023-03-25 15:56:22 +08:00
wangmm0220 5d06474f2e fix:send data batch if consume wal where subscribe db 2023-03-24 14:43:29 +08:00
Hongze Cheng c7d357843f Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-22694 2023-02-23 10:20:48 +08:00
Hongze Cheng f1b57ac74c fix: col data update bug 2023-02-22 17:54:17 +08:00
Hongze Cheng 81ee050a0f fix: coverity scan problem 2023-02-22 14:29:14 +08:00
Hongze Cheng 11bc53bbd7 Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/vnode_compact 2023-01-31 14:07:58 +08:00
Hongze Cheng dcd0ade349 fix double free problem 2023-01-30 14:24:00 +08:00
54liuyao 3df1f0ecc3 fix:do not print log 2023-01-11 17:29:06 +08:00
54liuyao d5ade95b31 feat(stream):user define tag 2023-01-10 10:13:56 +08:00
Ganlin Zhao a2cc08145a fix: fix coverity issues 2023-01-05 14:11:05 +08:00
Hongze Cheng 5e579398e8 more code 2023-01-03 18:16:52 +08:00
Hongze Cheng 0d7f9ac54d more code 2023-01-03 11:34:27 +08:00
Hongze Cheng 56d1e67692 more code 2023-01-03 09:20:40 +08:00
Hongze Cheng 9ffc55dac4 more code 2022-12-30 17:33:10 +08:00
Hongze Cheng 4936eb5b2c more code 2022-12-30 16:55:49 +08:00
Hongze Cheng 38b4c5c14a more code 2022-12-30 14:20:55 +08:00
Minglei Jin 6a009b7eb4 fix(tdataformat): check do merge after sorting again 2022-12-27 13:40:48 +08:00
Minglei Jin 98263432aa tdataformat/sort: a recursive merge sort for stable sorting ts 2022-12-27 10:14:08 +08:00
Minglei Jin 73585b8834 tdataformat/cleanup: reformat style 2022-12-26 15:06:28 +08:00
WANG MINGMING 4dbc324564
Merge branch 'refact/submit_req_taosx' into refact/submit_req 2022-12-22 09:26:45 +08:00
Hongze Cheng e52a7b017e fix valgrind error 2022-12-21 13:47:36 +08:00
dapan1121 f6123395c0 Merge branch 'refact/submit_req' of github.com:taosdata/TDengine into refact/submit_req 2022-12-20 18:05:03 +08:00
Hongze Cheng eddad1e790 fix: valgrind error 2022-12-20 17:14:15 +08:00
dapan1121 32e8202a25 enh: refact insert into select processing 2022-12-20 16:55:11 +08:00
Hongze Cheng 440556f46d fix: commit error 2022-12-07 22:48:12 +08:00
Hongze Cheng 259b7e8a8a fix compile issue 2022-12-06 14:53:02 +08:00
Hongze Cheng 899d7b0bcc Merge branch '3.0' of https://github.com/taosdata/TDengine into refact/submit_req 2022-12-06 14:37:22 +08:00
Hongze Cheng 8ba9b0f3dc more code 2022-12-05 22:57:29 +08:00
Hongze Cheng bac7da7037 more code 2022-12-05 22:35:56 +08:00
Hongze Cheng 6f71556e79 more code 2022-12-05 18:31:26 +08:00
Hongze Cheng 37eb6345a3 more code 2022-12-05 17:16:59 +08:00
Hongze Cheng cf0f1e5681 more code 2022-12-05 16:13:53 +08:00
Hongze Cheng e4fc222eba more code 2022-12-05 15:57:17 +08:00
Hongze Cheng 283bf01cb5 more code 2022-12-05 15:23:32 +08:00
wangmm0220 cbeec94bbe fix:add new submit for taosx 2022-12-03 22:20:16 +08:00