Commit Graph

144 Commits

Author SHA1 Message Date
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
t_max 2aad823709 fix: free assignment crash on Windows 2023-05-22 10:53:10 +08:00
Haojun Liao 573a86ed99 feature(tmq): add new API to extract offset from result set. 2023-05-16 09:51:00 +08:00
Haojun Liao 170c603995 other: merge 3.0 2023-05-13 20:16:55 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
yihaoDeng 5708fcb5cb Merge branch 'enh/3.0' into enh/rocksdbSstateMerge 2023-05-10 08:02:16 +00:00
dapan1121 b743b889fc
Merge pull request #20828 from taosdata/enh/TD-23421-M
enh: support user passwd version
2023-04-24 17:16:37 +08:00
Haojun Liao 62dad38d5c refactor: do some internal refactor and add the sample code. 2023-04-24 15:25:49 +08:00
kailixu 9549c1d929 chore: fix 2023-04-19 14:47:06 +08:00
Alex Duan 0822e82d64 feat: support exit by kill heart-beat thread mode 2023-04-18 17:12:04 +08:00
Haojun Liao 9627e8105b enh(tmq): support seek offset. 2023-04-18 13:52:47 +08:00
kailixu 5889ea1261 chore: support specify param by app 2023-04-17 14:19:44 +08:00
kailixu f6078dc27e chore: more code 2023-04-10 15:11:54 +08:00
kailixu 76386b9fad enh: assign passVer during taos_connect 2023-04-10 13:07:18 +08:00
kailixu ec8cd0c6b8 enh: support passwd version 2023-04-09 18:44:46 +08:00
wangmm0220 e1020b7967 fix:add interface for taos_get_current_db 2023-01-06 19:20:31 +08:00
wangmm0220 730fbe42cb fix:add logic for system table ins_columns 2023-01-05 14:34:07 +08:00
dapan1121 0fff3b3447 feat: add batch get table Vgid API 2023-01-04 14:13:08 +08:00
freemine b537bf318b new API taos_stmt_reclaim_fields to reclaim TAOS_FIELD_E in a uniform way 2022-12-29 10:36:34 +08:00
Xiaoyu Wang f6d953e62d fix: disable insert csv statements on cloud services 2022-12-19 16:40:40 +08:00
xsren 509ba087d2 fix:taos.dll export taosDatatype 2022-12-08 13:51:31 +08:00
Alex Duan 39482b24db feat(shell): supported affected rows int64_t 2022-12-02 16:42:38 +08:00
dapan1121 d20d1e07a7
Merge pull request #18553 from taosdata/fix/TD-20613
fix:[TD-20612] error if write raw with some cols
2022-11-30 13:21:48 +08:00
wangmm0220 b5e4b05752 fix:[TS-2057] add interface with ttl in schemaless 2022-11-29 11:52:40 +08:00
wangmm0220 bd84ecc361 fix:[TD-20613] add interface for write raw block with sdfasdf 2022-11-28 16:31:33 +08:00
yihaoDeng 69afe77ed9 add req_id interface 2022-11-03 20:08:30 +08:00
dapan1121 7c133359ce feat: add retrieve db and table route info api 2022-10-20 15:13:39 +08:00
dapan1121 723110c449 feat: add retrieve db and table route info API 2022-10-19 19:25:02 +08:00
wangmm0220 0029ddd232 feat:add new interface for schemaless 2022-10-17 17:48:30 +08:00
wangmm0220 a3161bf9c1 fix:add logic for auto create table in taosX 2022-09-13 19:16:26 +08:00
Liu Jicong 8b3489760c feat(tmq): support taosx 2022-08-30 11:12:20 +08:00
Liu Jicong c4df4431cd refactor(tmq): put write logic into taosx.c 2022-08-15 18:50:28 +08:00
Shuduo Sang e03adb140a
feat: remove temporary interface declarations (#15940)
* add a few stmt_ interface declartion

* add taos_load_table_info

* add taos_set_config(() interface

* add more interfaces

* warn 'reset query cache' only since lack engine support

* update taos-tools

* feat: remove temporary interface declaration

* fix: remove temporary interfaces
2022-08-10 21:42:30 +08:00
wangmm0220 788c063acc feat:modify get meta logic for schemaless 2022-07-29 15:54:24 +08:00
wangmm0220 ba1962cacf feat:add tmq get data interface 2022-07-26 17:43:22 +08:00
wangmm0220 e2414b4289 feat:add main logic for writing raw data of tmq 2022-07-22 20:08:33 +08:00
wangmm0220 3033afd6e8 fix:<TD-17539> error if stable alreadys & modify tmq struct 2022-07-19 17:20:15 +08:00
wangmm0220 34c87dc428 fix:<TD-17324> ts already exist when insert with schemaless & modify the interface of tmq meta 2022-07-18 15:33:42 +08:00
wangmm0220 607f8163d3 feat:add logic for get_tmq_meta_json 2022-07-10 18:54:58 +08:00
wangmm0220 6b46423a97 feat:write meta from tmq to taosd 2022-07-08 18:37:47 +08:00
wangmm0220 a74f19671d feat: add get meta interface for tmq 2022-07-05 19:16:00 +08:00
yihaoDeng 3bb68c78ae fix: fix rpc quit problem 2022-06-28 11:52:43 +08:00
dapan1121 d402716465 enh: stop query 2022-06-27 18:29:28 +08:00
Shuduo Sang fb50977b44
fix: add taos_set_config() back (#14277)
[TD-16828]
2022-06-27 14:07:42 +08:00
dapan1121 73dfd1173a enh: stop query 2022-06-27 09:50:42 +08:00
dapan1121 b092a9c5c9 Merge branch '3.0' into feature/alterlocal 2022-06-24 08:22:11 +08:00
dapan1121 abc69e1e2b feat: add new api 2022-06-24 08:20:54 +08:00
Liu Jicong 323ee6b1b0 enh(tmq): add demo for tmq_get_raw_meta 2022-06-23 17:26:52 +08:00
Liu Jicong 17639758c2 fix(tmq): apis adapt to tmq table meta 2022-06-21 15:40:34 +08:00
Liu Jicong 3f6ce2da73 feat(tmq): support topic with meta 2022-06-21 15:18:09 +08:00