Commit Graph

2419 Commits

Author SHA1 Message Date
Haojun Liao ca27220000
Merge pull request #21962 from taosdata/fix/TD-25102
add version check in rpc
2023-07-07 08:59:31 +08:00
wangmm0220 0928bd5510 fix:send rsp offset to client if unregister push mgr 2023-07-06 19:35:48 +08:00
wangmm0220 b2d41ce907 Merge branch 'main' of https://github.com/taosdata/TDengine into fix/TD-25071 2023-07-06 19:34:22 +08:00
wangmm0220 8e29de0c4d Merge branch 'mark/tmq' of https://github.com/taosdata/TDengine into mark/tmq 2023-07-06 17:03:15 +08:00
wangmm0220 ba9ab1f20b fix:null pointer error 2023-07-06 17:02:58 +08:00
wangmm0220 47ae92af93 fix:conflicts from main 2023-07-06 13:40:04 +08:00
wangmm0220 11e6856d3e fix:init char array 2023-07-06 13:37:58 +08:00
wangmm0220 34a62c3f38 fix:vginfo assigment not in same time,we should get vginfo by vg,not all vg 2023-07-05 22:55:41 +08:00
yihaoDeng 79f01ad655 add version check in rpc 2023-07-05 08:16:25 +00:00
wangmm0220 bdfeb32923 fix:bugs in tmq_get_topic_assignment 2023-07-05 16:04:34 +08:00
wangmm0220 6b5daf6c9f fix:add lock for tmq->clientTopic 2023-07-04 14:59:36 +08:00
Haojun Liao 82342ebdc7
Merge pull request #21934 from taosdata/feature/TD-20678
feat:subscribe only meta info
2023-07-04 11:28:27 +08:00
kailixu cd494803ee chore: code optimization 2023-07-03 20:39:50 +08:00
kailixu 64281ece98 chore: code optimization 2023-07-03 20:32:12 +08:00
kailixu 9f05ae15d6 chore: enable sysInfo update 2023-07-03 16:51:21 +08:00
dapan1121 a36dac2008
Merge pull request #21893 from taosdata/fix/TS-3551-M
enh: update of user auth version
2023-07-03 14:58:09 +08:00
kailixu 0a111f8c30 chore: make jenkins happy 2023-07-02 23:26:24 +08:00
kailixu 06c0d99008 chore: add test case 2023-07-02 22:57:10 +08:00
kailixu 2124ef00a7 chore: code optimization 2023-07-01 15:35:31 +08:00
kailixu 3cd9f67ab3 Merge branch 'fix/TS-3551-M' of github.com:taosdata/TDengine into fix/TS-3551-M 2023-07-01 15:25:34 +08:00
kailixu 6b0fc4aa1e chore: code optimization 2023-07-01 15:25:17 +08:00
kailixu c16088fffa chore: remove obsolete code 2023-06-30 19:31:56 +08:00
kailixu c81ecb1771 chore: make jenkins happy 2023-06-30 19:22:14 +08:00
kailixu 067a8334fd chore: code optimization 2023-06-30 16:30:04 +08:00
kailixu 387d611179 chore: passVer and authVer refact 2023-06-30 14:52:20 +08:00
wangmm0220 58c7011e0e feat:support only meta in tmq subscriptions 2023-06-30 11:42:40 +08:00
dapan1121 c8435de64a
Merge branch '3.0' into fix/m23.0 2023-06-29 14:03:56 +08:00
dapan1121 3519e9170e Merge remote-tracking branch 'origin/main' into 3.0 2023-06-29 11:13:45 +08:00
kailixu 1e9b85545b chore: more code 2023-06-28 20:57:05 +08:00
kailixu aefebfca7f enh: update of user auth version 2023-06-28 20:49:29 +08:00
wangmm0220 c4d1b5aa4b Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/TS-3495 2023-06-27 11:10:00 +08:00
wangmm0220 e8d53c2a96 fix:add log 2023-06-27 10:50:57 +08:00
dapan1121 4dae9f4eff merge main to 3.0 2023-06-26 18:43:00 +08:00
wangmm0220 7ebbe0603b fix:coverity scan error 2023-06-26 18:26:10 +08:00
Haojun Liao ec4b54d736
Merge pull request #21726 from taosdata/mark/sml
fix:quote process error in sml
2023-06-26 16:54:54 +08:00
wangmm0220 4be3f51390 fix:quote parse error in sml 2023-06-26 10:21:54 +08:00
kailixu f1eb637f03 chore: code revert 2023-06-25 16:52:22 +08:00
kailixu a868ed4895 fix: use max column length 2023-06-25 16:50:34 +08:00
wangmm0220 5b88dfb90b fix:remove report offset flag 2023-06-25 15:24:52 +08:00
wangmm0220 610aa0c8ba fix:modify log 2023-06-25 15:14:34 +08:00
wangmm0220 7a49d67078 Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/TS-3495 2023-06-25 14:54:16 +08:00
wangmm0220 d3dedbe676 fix:report current offset in tmq 2023-06-25 14:52:45 +08:00
wangmm0220 978f639851 fix:[TD-24807] double quote & space escape error 2023-06-16 19:25:08 +08:00
wade zhang 72cdca8570
Merge pull request #21750 from taosdata/FIX/TD-24828-3.0
fix: return error from vmPutMsgToQueue while vnode-write is disabled
2023-06-16 16:59:56 +08:00
Benguang Zhao 495ae49752 fix: refreshMeta on invalid schema of tb epSet in doAsyncQuery 2023-06-16 15:41:52 +08:00
Haojun Liao 1b9eca5ce0 other: merge main. 2023-06-15 13:03:17 +08:00
dapan1121 0c2bfde7fe
Merge pull request #21706 from taosdata/szhou/version-not-compatible-log
enhance: version not compatible log
2023-06-15 09:05:47 +08:00
wangmm0220 0232420273 fix:quote process error in sml 2023-06-14 17:32:50 +08:00
wangmm0220 864236a8dc fix:conflicts 2023-06-14 12:05:10 +08:00
wangmm0220 c28d7d9bf8 fix:open info log in tmq client & modify parametes in show consumers 2023-06-14 12:01:54 +08:00
wangmm0220 7e6c7e767a fix:Vnode is closed or removed if drop database 2023-06-13 19:10:45 +08:00
wangmm0220 f154d29ac7 fix:Vnode is closed or removed if drop database 2023-06-13 16:34:46 +08:00
dapan1121 f84eef0ac4
Merge branch '3.0' into feat/TD-24499 2023-06-13 15:27:18 +08:00
Haojun Liao 0ee01c5410
Merge pull request #21576 from taosdata/fix/TD-24563
fix:do not modify source data in schemaless
2023-06-13 14:59:05 +08:00
shenglian zhou 28e6c45021 enhance: version not compatible log 2023-06-13 14:41:42 +08:00
dapan1121 59b8cfbc7d enh: add sub_query in systable and kill subquery 2023-06-12 17:14:41 +08:00
wangmm0220 fe155898fe fix:modify offset description to string 2023-06-12 16:34:53 +08:00
dapan1121 170182fecd feat: support fill history with sub request 2023-06-12 16:10:54 +08:00
wangmm0220 5c5e76f894 fix:modify offset description to string 2023-06-12 11:17:32 +08:00
wangmm0220 ae85e5e0f6 fix:modify offset description to string 2023-06-12 10:29:33 +08:00
wangmm0220 6657b8d849 fix:modify offset description to string 2023-06-12 09:44:00 +08:00
wangmm0220 aa610b27a4 feat:add parameters for consumer & add offset rows for subscription 2023-06-09 18:51:10 +08:00
wangmm0220 3f46a9bbc9 feat:add parameters for consumer & add offset rows for subscription 2023-06-08 18:14:02 +08:00
t_max 163f5abc4c fix: no data after seek 2023-06-02 17:22:49 +08:00
t_max 27d8870e18 fix: no data after seek 2023-06-02 17:09:03 +08:00
wangmm0220 ee978a3604 fix:do not modify source data in schemaless 2023-06-02 16:09:54 +08:00
Haojun Liao 5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +08:00
huolibo 2e5ac6b0c2 fix: change return value 2023-05-30 11:33:46 +08:00
刘蓓 a70cceb440 fix: add return value 2023-05-30 10:54:54 +08:00
huolibo 79031c47a2 enh: add get offset 2023-05-30 10:54:54 +08:00
huolibo f9b1906127 feat(driver): jdbc add tmq seek function 2023-05-30 10:54:54 +08:00
Haojun Liao e31d9299cc
Merge pull request #21480 from taosdata/mark/sml
fix:memory leak
2023-05-26 19:00:21 +08:00
Haojun Liao 1e845acabe fix(tmq): allow seek before get assignment 2023-05-26 11:34:12 +08:00
wangmm0220 208ba2ef4d fix:memory leak 2023-05-26 10:45:37 +08:00
wangmm0220 b77544b30d Merge branch '3.0' of https://github.com/taosdata/TDengine into mark/sml 2023-05-26 09:03:36 +08:00
wangmm0220 40fa0e0620 fix:memory leak 2023-05-25 18:07:36 +08:00
Haojun Liao b932fdb5c4
Merge pull request #21470 from taosdata/feature/TD-24070
feat:add privilege for schemaless
2023-05-25 17:52:28 +08:00
wangmm0220 d9042f5ed3 fix:memory leak 2023-05-25 17:24:11 +08:00
wangmm0220 fcba7e326c feat:add privilege for schemaless 2023-05-25 14:24:25 +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
wangmm0220 fb9b0a3e86 feat:add privilege for schemaless 2023-05-24 14:34:52 +08:00
t_max 2aad823709 fix: free assignment crash on Windows 2023-05-22 10:53:10 +08:00
wangmm0220 8183be4aff fix:move sleep logic from rpc thread to tmq thread & fix some error 2023-05-20 16:13:52 +08:00
wangmm0220 bca1af3f5d fix:change tmq subscribe try time to 60mins 2023-05-18 21:18:44 +08:00
wangmm0220 50bdfef7b6 fix:tmq ref err & vg error 2023-05-18 18:34:42 +08:00
wangmm0220 7db9f1e58e fix:tmq ref err & vg error 2023-05-18 18:21:45 +08:00
wangmm0220 c7e6883ac8 fix:tmq ref err & vg error 2023-05-18 18:10:33 +08:00
dapan1121 f5ebc17fae
Merge branch '3.0' into feat/TD-22746 2023-05-18 09:10:49 +08:00
Haojun Liao ffee5ebc61 Merge branch '3.0' into feature/3_liaohj 2023-05-17 17:47:44 +08:00
Haojun Liao a4d9210b07 fix(tmq): add filter for taosX poll rsp. 2023-05-17 16:40:44 +08:00
Haojun Liao 041ffa91bd other: merge main. 2023-05-17 15:42:15 +08:00
Haojun Liao f55f8d245c fix(tmq): avoid the offset is revised by pool rsp which is issued before invoking tmq_offset_seek function. 2023-05-17 15:19:51 +08:00
kailixu ae3aa6535f fix: client HB logic 2023-05-17 10:17:30 +08:00
dapan1121 3e2c8a9192 Merge branch 'enh/tsbsPerf.4' of github.com:taosdata/TDengine into enh/tsbsPerf.4 2023-05-16 18:37:22 +08:00
dapan1121 df973ce28e fix: remove debug info 2023-05-16 18:37:00 +08:00
dapan1121 a1e776bcf8
Update clientImpl.c 2023-05-16 18:04:54 +08:00
dapan1121 61bc3ab72e
Update clientEnv.c 2023-05-16 18:04:00 +08:00
dapan1121 9033d34852
Merge pull request #21319 from taosdata/fix/TD-24178
fix: file fd not clear issue
2023-05-16 14:34:05 +08:00
dapan1121 ad7509b1e2
Merge pull request #21315 from taosdata/enh/TD-23421-M
fix: client hb logic fix and optimization
2023-05-16 13:33:38 +08:00
dapan1121 ee2521a6ab Merge remote-tracking branch 'origin/3.0' into feat/TD-22746 2023-05-16 10:53:21 +08:00
dapan1121 9fcf56a4ee feat: support meta cleanup 2023-05-16 10:51:58 +08:00
dapan1121 dc67223deb fix: file fd not clear issue 2023-05-16 10:47:49 +08:00
kailixu b125d214f2 chore: code optimization 2023-05-16 09:58:53 +08:00
Haojun Liao 573a86ed99 feature(tmq): add new API to extract offset from result set. 2023-05-16 09:51:00 +08:00
kailixu 33c48fe981 fix: client hb logic fix and optimization 2023-05-16 08:57:57 +08:00
dapan1121 198be9a7a6 fix: double decompress issue and memory leak issue 2023-05-15 10:13:20 +08:00
Haojun Liao 170c603995 other: merge 3.0 2023-05-13 20:16:55 +08:00
Haojun Liao 99148d6719 other: merge 3.0 2023-05-13 20:02:48 +08:00
Haojun Liao 236926b9ee other: merge enh/rocksdbstate 2023-05-13 19:49:28 +08:00
Haojun Liao 1975e94501 Merge branch 'main' into enh/rocksdbSstate 2023-05-13 19:41:03 +08:00
dapan1121 69795286fa Merge remote-tracking branch 'origin/main' into enh/tsbsPerf.4 2023-05-12 13:46:16 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
Haojun Liao 26f94ecd60
Merge pull request #21260 from taosdata/feature/3_liaohj
fix(tmq): update the local offset when retrieving offset from vnode.
2023-05-11 23:12:33 +08:00
Haojun Liao c6e62d7fb8 fix(tmq): update the local offset when retrieving offset from vnode. 2023-05-11 17:40:17 +08:00
Haojun Liao fd94ca097a
Merge pull request #21255 from taosdata/feature/3_liaohj
fix(tmq): add some logs.
2023-05-11 12:50:16 +08:00
Haojun Liao b16f26a12f fix(tmq): add some logs. 2023-05-11 11:56:17 +08:00
wangmm0220 29bab82a0c fix:compile error in release mode 2023-05-10 22:51:32 +08:00
dapan1121 daedb3618b Merge remote-tracking branch 'origin/3.0' into feat/TD-22746 2023-05-10 17:47:11 +08:00
dapan1121 79d4403377 feat: add client meta limitation 2023-05-10 17:44:53 +08:00
yihaoDeng 5708fcb5cb Merge branch 'enh/3.0' into enh/rocksdbSstateMerge 2023-05-10 08:02:16 +00:00
Yihao Deng c6e5879f44
Merge branch 'main' into enh/rocksdbSstate 2023-05-10 10:04:28 +08:00
yihaoDeng 8356533eb1 Merge branch 'enh/standVer' into enh/rocksdbSstateMerge 2023-05-09 12:13:16 +00:00
dapan1121 52fd6a84ac enh: support db cfg cache update 2023-05-09 17:04:20 +08:00
wangmm0220 f9142c0ddb fix:[TD24010] lost data if apply ver is small than commit ver 2023-05-08 16:49:56 +08:00
kailixu 29adb77d94 chore: more code 2023-05-08 15:47:48 +08:00
kailixu a049ae6f9d chore: revert 2023-05-08 14:59:56 +08:00
kailixu b156fada25 fix: memory leak 2023-05-08 14:39:03 +08:00
Yihao Deng cb223acf82
Merge branch 'main' into enh/rocksdbSstate 2023-05-08 09:45:27 +08:00
yihaoDeng 08c3a63341 Merge branch 'enh/standVer' into enh/rocksdbSstateMerge 2023-05-06 12:37:54 +00:00
Minglei Jin 596bee8028 Merge branch '3.0' into fix/TD-23623 2023-05-06 16:07:26 +08:00
Haojun Liao db0ad95649
Merge pull request #21152 from taosdata/fix/TS-3303
fix:[TS-3303]use stable name + child table name as key to save uid to…
2023-05-06 14:31:12 +08:00
Haojun Liao 2ea81179ae
Merge pull request #21153 from taosdata/fix/TD-23881
fix:change field bytes if length is bigger than 1024
2023-05-06 14:30:41 +08:00
Haojun Liao 71a2886fa5
Merge pull request #21163 from taosdata/fix/TS-3277
fix:[TS-3277]table not exist if drop stable in another client when in…
2023-05-06 14:30:23 +08:00
Haojun Liao da6212bab0 other: merge main. 2023-05-06 12:51:38 +08:00
Haojun Liao 5d4a3116d5
Merge pull request #21139 from taosdata/fix/liaohj_main
refactor: do some internal refactor.
2023-05-06 09:49:26 +08:00
kailixu 75795253a9 more code 2023-05-06 06:06:12 +08:00
kailixu 4ae9eab90e chore: fix 2023-05-05 20:42:49 +08:00
kailixu 0c3dc0867f chore: sync fix from main 2023-05-05 20:33:41 +08:00
wangmm0220 fdee112ae4 fix:[TS-3277]table not exist if drop stable in another client when insert data using schemaless interface 2023-05-05 17:31:08 +08:00
wangmm0220 0a469484fa fix:[TS-3277]table not exist if drop stable in another client when insert data using schemaless interface 2023-05-05 15:01:27 +08:00
wangmm0220 1d8c517844 fix:[TS-3303]use stable name + child table name as key to save uid to avoid multi items for one table in submit block 2023-05-05 10:46:54 +08:00
wangmm0220 bb33f054b4 fix:change field bytes if length is bigger than 1024 2023-05-04 17:21:18 +08:00
Haojun Liao dbf28b434e
Merge pull request #21137 from taosdata/fix/TD-23881
fix:change field bytes if length is bigger than 1024
2023-05-04 17:05:29 +08:00
Haojun Liao 23c49594b7 other: merge main. 2023-05-04 16:41:53 +08:00
Haojun Liao 09a04052ec refactor: do some internal refactor. 2023-05-04 16:15:14 +08:00
wangmm0220 b1f3a010df fix:change field bytes if length is bigger than 1024 2023-05-04 13:58:45 +08:00
Haojun Liao 851193a033
Merge pull request #21060 from taosdata/fix/TS-3222
opti:change push mgr to consume msg for subscribe
2023-05-04 10:16:41 +08:00
wangmm0220 8d84e8f8a5 fix:[TD-23788] client wait if task status error in taosx transform data 2023-04-28 19:29:17 +08:00
kailixu d492904188 chore: error process and test cases 2023-04-28 16:40:26 +08:00
wangmm0220 a7a73ace4a fix:memory leak in schemaless if key dump 2023-04-28 15:26:24 +08:00