Commit Graph

220 Commits

Author SHA1 Message Date
wangmm0220 6b9c00cb9b fix:[TD-31017]process return value in clientRawBlockWrite.c 2024-07-19 14:49:25 +08:00
dapan1121 fa2fb83014
Merge pull request #26609 from taosdata/TD-31000
ret value for parTranslater.c
2024-07-17 17:33:39 +08:00
wangjiaming0909 0cccaa8ac4 ret value for parTranslater.c 2024-07-17 10:26:06 +08:00
wangmm0220 aed8a75e35 feat:[TD-30975]process return value in schemaless 2024-07-15 19:07:20 +08:00
Hongze Cheng 6f72fd4170
Merge pull request #25996 from taosdata/feat/TD-30006-3
Feat/TD-30006-3
2024-06-03 15:41:47 +08:00
54liuyao e0167511c1 use tDeleteSVCreateTbBatchReq free mem 2024-05-31 17:18:25 +08:00
Yihao Deng a1ccf91298 support add column compress 2024-05-31 02:47:57 +00:00
54liuyao d815bb117b add json for batch meta 2024-05-28 16:56:23 +08:00
54liuyao 7fc2e8cc26 batch meta 2024-05-28 10:17:20 +08:00
54liuyao 441a150d66 optimize tmq snapshot meta 2024-05-23 17:35:54 +08:00
Yihao Deng 6e5d411986 add compress 2024-05-13 03:45:51 +00:00
Hongze Cheng e678d2508f
Merge pull request #25462 from taosdata/enh/supportTmqInterface
Enh/support tmq interface
2024-04-26 13:05:33 +08:00
factosea 905042d0aa fix: createstb use compress 2024-04-25 11:08:44 +08:00
Yihao Deng 2c74a600ef Refactor compress option handling in clientRawBlockWrite.c 2024-04-23 12:09:32 +00:00
Yihao Deng 1cf109604c Add support for updating column compression in alter table 2024-04-23 10:10:31 +00:00
Yihao Deng f0147770e0 add tmq interface 2024-04-22 02:21:51 +00:00
dapan1121 312ca43b9f
Merge pull request #25399 from taosdata/opti/TS-4658
opti:add local thread error msg array
2024-04-19 18:23:39 +08:00
wangmm0220 32f6d525e6 fix:compile error in windows & wait for heatbeat in case 2024-04-19 15:27:56 +08:00
wangmm0220 1695824c73 fix:merge from 3.0 2024-04-19 13:52:57 +08:00
wangmm0220 42467c0e00 opti:raw data from tmq 2024-04-19 13:48:17 +08:00
wangmm0220 529ca1d1c1 opti:add local thread error msg array 2024-04-18 13:56:43 +08:00
yihaoDeng 4948bd690d 3.0 merge compress 2024-04-15 11:38:44 +08:00
wangmm0220 f1853ced26 feat:[TS-4243] add logic for primark key in tmq 2024-03-22 17:48:59 +08:00
yihaoDeng fe10867547 Merge branch '3.0' into feature/compressData 2024-03-14 03:19:39 +00:00
factosea 30e52bb71a col compress sql parse 2024-03-07 18:06:15 +08:00
wangmm0220 af6d6b69c3 fix:add excluded msg for delete in tmq 2024-03-05 11:25:43 +08:00
wangmm0220 c7d115d8aa fix:add excluded msg for delete in tmq 2024-03-04 14:58:13 +08:00
wangmm0220 6e13e4aa63 fix:add excluded msg for meta in tmq 2024-02-22 10:58:32 +08:00
wangmm0220 77e2500a81 fix:conflicts from 3.0 2024-02-19 18:46:31 +08:00
wangmm0220 7d3aa69740 fix:[TD-28025]return 0 if create table failed if stable not exist 2024-01-24 14:02:07 +08:00
wangmm0220 6e09164c3a fix:[TD-28025]return 0 if create table failed if stable not exist 2024-01-24 11:38:17 +08:00
wangmm0220 22225d31c3 fix:[TD-28025]return 0 if create table failed if stable not exist 2024-01-24 10:39:22 +08:00
wangmm0220 f95d5e4f62 opti:[TD-28118] raw block data for tmq 2024-01-19 15:28:23 +08:00
wangmm0220 d5d1dd9127 opti:[TD-28118] raw block data for tmq 2024-01-17 20:08:26 +08:00
dapan1121 dfb3feb5dc Merge remote-tracking branch 'origin/main' into merge/m23 2023-11-15 11:39:18 +08:00
Haojun Liao 971bd0b834
Merge pull request #23452 from taosdata/fix/TD-26756-3.0
fix:[TD-25756]return error if table not exist
2023-11-01 15:32:12 +08:00
wangmm0220 34b4de82d0 fix:conflict from 3.0 2023-10-30 09:49:19 +08:00
wangmm0220 e5bc2bfe6e fix:[TD-25756]return error if table not exist 2023-10-30 09:34:00 +08:00
dapan1121 972e10a238 Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-30 08:45:29 +08:00
wangmm0220 e6df389151 fix:add req_id for raw block interface 2023-10-27 11:46:59 +08:00
wangmm0220 1ad18c51ca fix:modify log 2023-10-18 19:16:13 +08:00
wangmm0220 b15b61f9ff fix:modify log 2023-10-18 18:47:04 +08:00
wangmm0220 ea4e322427 fix:[TD-25756]return error if table not exist 2023-10-18 14:11:27 +08:00
wangmm0220 0a7ecf9f0c fix:[TD-25756]return error if table not exist 2023-10-18 11:40:06 +08:00
dapan1121 aab4cb98dc enh: create & drop view meta processing 2023-10-13 19:16:37 +08:00
Haojun Liao eb4449999f other: merge 3.0 2023-10-12 10:33:48 +08:00
wangmm0220 803b17a2db fix:memory leak 2023-09-22 09:31:58 +08:00
dmchen 2228bcb5ee ci break 2023-09-20 09:14:32 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
Haojun Liao b1aa86a290
Merge pull request #22605 from taosdata/feat/TD-18789
feat:support varbinary type
2023-08-30 11:29:26 +08:00
wangmm0220 201a8f0918 feat:support varbinary type 2023-08-28 19:06:16 +08:00
dapan1121 0cce255a02 Merge remote-tracking branch 'origin/3.0' into fix/m23.0 2023-08-28 10:06:53 +08:00
kailixu 46a4dfd92a fix: assign flags during subscribe 2023-08-22 18:32:52 +08:00
kailixu 647b57d264 fix: assign flags during subscribe 2023-08-22 18:30:11 +08:00
wangmm0220 f266d51764 feat:support varbinary type 2023-08-16 19:05:07 +08:00
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +08:00
wangmm0220 5cb35f2fa6 feat:add committed & position & commite_offset interface 2023-07-19 17:29:39 +08:00
dapan1121 a99fac031c fix: fix coverity scan issues 2023-07-07 10:25:48 +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
Haojun Liao c654f1145d enh(stream): add new msg for seek, and do some internal refactor. 2023-04-20 10:59:16 +08:00
Xiaoyu Wang e9d7a099cc merge main 2023-04-04 14:50:58 +08:00
wangmm0220 20e2010f70 fix:memory leak 2023-03-23 13:35:17 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
wangmm0220 74c201bc09 fix:create same table use writemetadata interface 2023-03-21 18:58:41 +08:00
wangmm0220 220d4bf86a fix:add log 2023-03-21 14:38:13 +08:00
wangmm0220 7849459bef fix:add log 2023-03-20 18:20:01 +08:00
wangmm0220 72c2631c0d fix:use table suid in taosx to avoid suid is not same for using suid 2023-03-14 17:52:16 +08:00
wangmm0220 c7a10ae5a8 fix:use table suid in taosx to avoid suid is not same for using suid 2023-03-14 15:52:39 +08:00
wangmm0220 8102beff13 fix:add log for taosx 2023-03-13 14:10:49 +08:00
wangmm0220 06079c90a3 fix:add log for taosx 2023-03-13 14:01:18 +08:00
wangmm0220 997f41c854 fix:conflict from 3.0 2023-02-13 14:05:53 +08:00
wangmm0220 b054ef9a9f fix:conflict from 3.0 2023-02-13 14:04:36 +08:00
Xiaoyu Wang 3382a24a69 merge main 2023-02-10 18:03:11 +08:00
wangmm0220 f9e409e991 fix:change uid in taosx to avoiding uid same in different db 2023-02-09 14:28:26 +08:00
wangmm0220 0a01fbc16c fix:change uid in taosx to avoiding uid same in different db 2023-02-09 14:00:03 +08:00
wangmm0220 c330588d55 fix:error in subscribe table for taosx 2023-02-03 15:35:13 +08:00
wangmm0220 c8d49b603d fix:roll back htol length for block raw data 2023-02-02 17:23:01 +08:00
wangmm0220 8a21d7f307 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/TD-21899 2023-02-01 16:13:06 +08:00
wangmm0220 2bf0916bcf fix:split block data if there are none value in block for taosx 2023-02-01 16:12:59 +08:00
wangmm0220 94a3fa4ff3 fix:htol(length) & set vgId,uid correct for auto create table in taosx 2023-01-30 09:55:22 +08:00
Xiaoyu Wang 24157e78d6 merge main 2023-01-28 17:52:58 +08:00
wangmm0220 06f863fbad fix:memory leak 2023-01-12 17:38:07 +08:00
wangmm0220 ce3fbae952 fix:ASSERT in client mode & converity error 2023-01-06 14:37:38 +08:00
Haojun Liao 723efba79b
Merge branch '3.0' into refact/submit_req 2022-12-26 13:25:25 +08:00
Shengliang Guan 664dcb6b4e Merge branch 'main' into merge/mainto3.0_1226 2022-12-26 09:26:54 +08:00
Xiaoyu Wang 0c269c317b merge 3.0 2022-12-23 17:50:05 +08:00
wangmm0220 9a5c327b7b fix:modify delete msg type to tmq meta 2022-12-22 17:34:48 +08:00
wangmm0220 fd76fdb9e0 opti:taosx for write_raw_block 2022-12-22 16:50:21 +08:00
WANG MINGMING 4dbc324564
Merge branch 'refact/submit_req_taosx' into refact/submit_req 2022-12-22 09:26:45 +08:00
wangmm0220 dffe02e383 fix:modify delete msg type to tmq meta 2022-12-22 09:08:23 +08:00
Xiaoyu Wang ad7f9b274b enh: improve unit tests 2022-12-20 16:53:08 +08:00
Shengliang Guan 6d94afe48f
Revert "refact: adjust some assert cases" 2022-12-07 21:51:17 +08:00
Shengliang Guan d5126d469a refact: replcase ASSERT with tAssert 2022-12-07 18:42:48 +08:00
wangmm0220 cbeec94bbe fix:add new submit for taosx 2022-12-03 22:20:16 +08:00
Shengliang Guan d9c261cd13 refact: remove some error codes 2022-12-03 10:17:02 +08:00
wangmm0220 b2ed72aeca fix:error in index 2022-11-29 19:54:06 +08:00
wangmm0220 8b02719ea5 fix:[TD-20612] error if write raw with some cols 2022-11-29 17:01:16 +08:00
wangmm0220 829a7631b3 fix:[TD-20612] error if write raw with some cols 2022-11-29 10:49:47 +08:00
wangmm0220 5bed172337 fix:[TD-20612] error if write raw with some cols 2022-11-29 10:31:08 +08:00
wangmm0220 9b5d78d23d fix:[TD-20613] add interface for write raw block with some fields 2022-11-28 16:32:06 +08:00
wangmm0220 bd84ecc361 fix:[TD-20613] add interface for write raw block with sdfasdf 2022-11-28 16:31:33 +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
kailixu 4e739b45fb fix: flen/offset adaption for trow 2022-11-23 21:29:16 +08:00
yihaoDeng 69afe77ed9 add req_id interface 2022-11-03 20:08:30 +08:00
Shengliang Guan b5f0041af1 refact: adjust error code in vnode 2022-11-02 15:28:32 +08:00
Cary Xu 6d0d42569a enh: remove obsolete codes for raw data row 2022-10-25 11:30:57 +08:00
Benguang Zhao 3b0968d7f9 enh: enable the -Wformat=2 compiler option 2022-10-19 09:24:15 +08:00
wangmm0220 54e3617a6f fix:scan converity defects 2022-10-17 14:32:18 +08:00
Liu Jicong 2f9aeeb5fc feat(stream): support define table name 2022-10-09 16:54:27 +08:00
wangmm0220 ee2f5abf82 fix:error in CI 2022-09-20 09:52:10 +08:00
wangmm0220 cc8738d251 fix:error in CI 2022-09-19 19:00:21 +08:00
wangmm0220 dfc5ce23a0 fix:error in auto create table for taosX 2022-09-16 17:01:41 +08:00
wangmm0220 13059c40bc fix:error in auto create table for taosX 2022-09-16 10:45:32 +08:00
wangmm0220 414021a8e0 fix:error in auto create table for taosX 2022-09-15 19:23:12 +08:00
wangmm0220 0afef12ce0 fix:add createTableList element in tmq_get_json 2022-09-14 18:52:56 +08:00
wangmm0220 8a8423d66d fix:add logic for auto create table in taosX 2022-09-14 16:44:41 +08:00
wangmm0220 a3161bf9c1 fix:add logic for auto create table in taosX 2022-09-13 19:16:26 +08:00
Shengliang Guan c09e6f6236 Merge branch '3.0' into feature/TD-14761 2022-09-04 09:01:43 +08:00
Liu Jicong b050d1c33a refactor(tmq) 2022-09-02 22:09:58 +08:00