Commit Graph

168 Commits

Author SHA1 Message Date
wangmm0220 e6df389151 fix:add req_id for raw block interface 2023-10-27 11:46:59 +08:00
Haojun Liao 68c329e1f7
Merge pull request #23015 from taosdata/mark/tmq-3.0
fix:add interface tmq_get_connect to get TAOS from tmq
2023-09-22 14:02:19 +08:00
Cary Xu 1bbb812557
Merge branch '3.0' into enh/TS-3934-3.0 2023-09-21 17:32:51 +08:00
wangmm0220 06afd0bd33 fix:add interface tmq_get_connect to get TAOS from tmq 2023-09-21 15:13:38 +08:00
slzhou de411ebad1 fix: review comments 2023-09-21 09:55:13 +08:00
kailixu 2b25982495 enh: user dropped notification 2023-09-21 09:53:45 +08:00
shenglian zhou 94a616fcc1 fix: save and continue 2023-09-18 16:59:07 +08:00
slzhou a44d0bceb6 Merge branch 'szhou/enh/ipWhiteList' into enh/ipWhiteList 2023-09-12 16:21:29 +08:00
shenglian zhou 8db96a0085 enhance: update notification and get user whitelist api 2023-09-12 14:10:41 +08:00
shenglian zhou 64caae83fd enhance: add hb whitelist version and notify taosadapter 2023-09-12 14:10:41 +08:00
wangmm0220 f0fbe08e1d fix:core dump if tmq is null 2023-09-01 16:45:46 +08:00
Haojun Liao ad9f3cbc43 other: merge main. 2023-08-16 09:14:10 +08:00
wangmm0220 beb84b2355 fix:tmq interface & remove snapshot code 2023-08-15 15:37:39 +08:00
wangmm0220 60191bef9e fix:tmq interface & remove snapshot code 2023-08-14 16:24:56 +08:00
wangmm0220 99c3ebc282 fix:optimize log & change return value for async interface 2023-07-20 18:28:21 +08:00
wangmm0220 5cb35f2fa6 feat:add committed & position & commite_offset interface 2023-07-19 17:29:39 +08:00
wangmm0220 bbdcbcb75b fix:modify commit version to next validate version 2023-07-14 16:43:28 +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
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