Commit Graph

288 Commits

Author SHA1 Message Date
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
wangmm0220 f266d51764 feat:support varbinary type 2023-08-16 19:05:07 +08:00
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
Hongze Cheng b4a9e55b47 fix a bug 2022-12-03 15:34:03 +08:00
Shengliang Guan d9c261cd13 refact: remove some error codes 2022-12-03 10:17:02 +08:00
Hongze Cheng 472d3a347d fix a bug 2022-12-02 19:55:36 +08:00
Hongze Cheng 3700f0dc8e more code 2022-12-01 16:19:21 +08:00
Hongze Cheng 0525b4fa0d more code 2022-12-01 15:36:10 +08:00
dapan1121 70c133a117 Merge remote-tracking branch 'origin/refact/submit_req' into refact/submit_req.0 2022-11-30 19:09:37 +08:00
Hongze Cheng 5157491ae9 more fix 2022-11-30 19:08:02 +08:00
dapan1121 366f246fc6 Merge remote-tracking branch 'origin/refact/submit_req' into refact/submit_req.0 2022-11-30 17:46:04 +08:00
dapan1121 34662ea10a enh: support column mode write 2022-11-30 16:57:24 +08:00
Hongze Cheng dc59712452 add more code 2022-11-30 14:49:18 +08:00
Hongze Cheng 0277ec35b5 fix a line of code 2022-11-30 10:32:59 +08:00
Hongze Cheng feaea3d12f adjust row api 2022-11-30 10:23:44 +08:00
Hongze Cheng e9241629c3 fix typo 2022-11-30 10:14:22 +08:00
Hongze Cheng 39628ec6f5 more code 2022-11-29 22:06:08 +08:00
Hongze Cheng 2d804fa48f more code 2022-11-29 21:30:08 +08:00
Hongze Cheng fad06f6144 optimize code 2022-11-29 16:28:12 +08:00
Hongze Cheng 191870b2d4 more code 2022-11-28 16:34:51 +08:00
Hongze Cheng 37239ffaea more code 2022-11-28 15:37:47 +08:00
Hongze Cheng 08bf69e15a more code fix 2022-11-28 14:26:00 +08:00
Hongze Cheng 0f8016995c more code 2022-11-28 13:41:06 +08:00
Hongze Cheng 51e513a340 more code 2022-11-28 10:28:07 +08:00
Hongze Cheng e7647c56e0 make it compile 2022-11-28 08:59:49 +08:00
Hongze Cheng dd31dae531 more code 2022-11-27 19:57:34 +08:00
Hongze Cheng b840cd3f34 more code 2022-11-27 19:55:17 +08:00
Hongze Cheng 0d39f49d28 more code 2022-11-27 19:46:35 +08:00
Hongze Cheng a1256ac8e4 more code 2022-11-27 16:08:15 +08:00
Hongze Cheng f7325a99bb more code 2022-11-27 15:27:37 +08:00
Hongze Cheng 7e3290879c more api 2022-11-25 17:27:04 +08:00
Hongze Cheng b96d948539 add an interface 2022-11-24 16:55:06 +08:00
Hongze Cheng 504fd15297 make it compile 2022-11-24 11:54:00 +08:00
Hongze Cheng 54708073f1 more code 2022-11-24 11:49:48 +08:00
Shengliang Guan 335a572d86
Revert "Revert "enh: row optimize2"" 2022-11-24 10:12:25 +08:00
Hongze Cheng ffbb04d40a
Revert "enh: row optimize2" 2022-11-24 09:21:26 +08:00
Hongze Cheng c1db8a9e4d refact code 2022-11-23 20:13:27 +08:00
Hongze Cheng df5bcae11b more code 2022-11-23 15:45:19 +08:00
Hongze Cheng 6e23c8cdb3 more code 2022-11-23 10:45:58 +08:00
Hongze Cheng 37d6b62e02 more code 2022-11-22 15:14:59 +08:00
Hongze Cheng 75b2bb09c1 more code 2022-11-22 14:58:57 +08:00
Hongze Cheng fe3cda4f87 more code 2022-11-22 14:57:22 +08:00
Hongze Cheng 1a3e429d10 more code 2022-11-22 13:54:27 +08:00
Hongze Cheng 88f244bca5 more code 2022-11-22 12:59:27 +08:00
Hongze Cheng 3f5a87a5b1 more code 2022-11-22 11:59:09 +08:00
Hongze Cheng dcec02fd57 more code 2022-11-21 22:04:57 +08:00
Hongze Cheng de07035015 more code 2022-11-21 17:41:17 +08:00
Hongze Cheng 895b48f834 more code 2022-11-21 17:17:28 +08:00
Hongze Cheng 8267cad1db more code 2022-11-21 15:32:55 +08:00
Hongze Cheng 04252283b9 more code 2022-11-21 15:16:50 +08:00
Hongze Cheng e4df975a7f more code 2022-11-21 14:33:50 +08:00