Commit Graph

261 Commits

Author SHA1 Message Date
wangjiaming0909 ef47fd57d6 support tsma catalog cache 2024-04-16 14:14:34 +08:00
dapan1121 55d118d17c Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-04-16 09:12:04 +08:00
yihaoDeng 4948bd690d 3.0 merge compress 2024-04-15 11:38:44 +08:00
kailixu 77d912c210 fix: primary key should not be null or none 2024-04-02 14:39:13 +08:00
yihaoDeng 44e6d225e2 Merge branch '3.0' into feature/compressData 2024-04-02 00:18:24 +00:00
yihaoDeng ec35f5718e fix invalid free 2024-04-01 19:58:04 +08:00
yihaoDeng 237ec5a46c fix ci error 2024-04-01 01:39:50 +00:00
yihaoDeng c852a8d092 fix ci error 2024-03-31 14:47:38 +00:00
yihaoDeng 3964f01793 fix invalid read 2024-03-18 07:23:55 +00:00
yihaoDeng 064e7ef017 fix desc crash 2024-03-13 08:03:43 +00:00
factosea 9711c830fe show create table 2024-03-13 15:17:43 +08:00
yihaoDeng 066a22443d fix invalid free 2024-03-12 09:50:26 +00:00
yihaoDeng 796ff03eb5 fix invalid copy 2024-03-12 09:47:01 +00:00
factosea 5dd4d05b2e desc table 2024-03-12 16:46:41 +08:00
dapan1121 dec6e3fffe enh: support asof join 2024-01-12 18:29:27 +08:00
dapan1121 abdf6d337a enh: push down conditions 2023-11-29 20:06:30 +08:00
dapan1121 6dcc555bbc fix: view privilege issue 2023-10-25 10:47:01 +08:00
dapan1121 0a0f512023 feat: add view meta processing 2023-09-28 11:44:38 +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
Shungang Li b93f653d7e feat: enhance ttl, deletetime modified by writing-ops
new config item: ttlChangeOnWrite (default 0)
ttl delete time changes on last write if true
2023-06-19 19:03:35 +08:00
wangmm0220 78db3520a6 fix:conflict 2023-05-29 14:57:03 +08:00
dapan1121 2713f4f6d4 feat: support create topic as stable with conditions 2023-05-25 19:01:58 +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
dapan1121 69795286fa Merge remote-tracking branch 'origin/main' into enh/tsbsPerf.4 2023-05-12 13:46:16 +08:00
dapan1121 5db5205e31 fix: schema/tag version update to int32 2023-04-26 13:41:16 +08:00
chenhaoran 7d7a0769b3 Merge remote-tracking branch 'origin/main' into enh/tsbsPerf.1 2023-04-21 16:20:37 +08:00
dapan1121 7f518ca4ea feat: support cache db cfg 2023-04-13 10:54:57 +08:00
Xiaoyu Wang 5ce6220106
Merge pull request #20781 from taosdata/szhou/replace-function
feature: udf replace function
2023-04-11 17:25:21 +08:00
shenglian zhou 32523d72f9 fix: add created time to file name and keep file reuse 2023-04-08 10:11:57 +08:00
shenglian zhou 4612d6d14b fix: catalog not processing version 2023-04-06 15:37:19 +08:00
dapan1121 80798dd934 fix: job retry issue 2023-03-28 09:20:53 +08:00
Haojun Liao 22aa03307c fix(query): fix syntax errors on centos. 2023-02-24 11:38:54 +08:00
dapan1121 436bc5cbe8 enh: remove asserts 2022-12-30 15:35:03 +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
dapan1121 9cb07360de
Merge pull request #18643 from taosdata/enh/insert_multi_table_optimize
enh: optimize multiple table insert
2022-12-04 16:48:15 +08:00
dapan1121 e455269220 fix: memory leak and other issues 2022-12-03 18:46:59 +08:00
dapan1121 0143b4fe64 enh: optimize stmt auto create table 2022-12-03 14:56:51 +08:00
Shengliang Guan d9c261cd13 refact: remove some error codes 2022-12-03 10:17:02 +08:00
dapan1121 b08ee99c4c fix: vgroup array not made in some cases 2022-12-02 18:09:38 +08:00
dapan1121 2e75de8368 fix: fix submit response message handling 2022-12-01 19:26:26 +08:00
dapan1121 7dea2e99d3
Merge pull request #17973 from taosdata/fix/TD-20273
fix: free unfinished ahandle when cli quit
2022-11-10 13:52:32 +08:00
dapan1121 9f7e06721c enh: support vgroup epset update 2022-11-09 18:48:52 +08:00
yihaoDeng 7b30a6ee23 free unfinished ahandle while quit 2022-11-08 20:45:11 +08:00
Shengliang Guan fb7d45303b fix: add log for use db rsp 2022-11-08 13:46:18 +08:00
dapan1121 973a942d0f enh: support get meta only from cache 2022-11-01 11:43:40 +08:00
dapan1121 ba0913e645 fix: remove not used code 2022-10-26 19:25:12 +08:00
haoranchen 06f276f137
Update querymsg.c 2022-10-20 21:19:33 +08:00
haoranchen 93742337fb
Update querymsg.c 2022-10-20 21:14:46 +08:00
dapan1121 2fa970e8bc Merge branch 'fix/TD-19312' of github.com:taosdata/TDengine into fix/TD-19312 2022-10-20 19:44:23 +08:00
dapan1121 c2d071a2e4 fix: add debug log 2022-10-20 19:43:33 +08:00
Xiaoyu Wang 601f0f3edf fix: handle coverity scan 2022-10-19 13:56:39 +08:00
dapan1121 0fe14f0b16 fix: fix coverity issues 2022-10-18 16:33:27 +08:00
dapan1121 cf9abe7258 fix: fix coverity check issues 2022-10-17 19:48:36 +08:00
afwerar f80dbfb6f5 fix: memory param over 2022-10-13 18:48:06 +08:00
Hongze Cheng 8a033aca5c more code format 2022-10-13 14:25:37 +08:00
Hongze Cheng 52bf961622 more code 2022-10-12 11:09:42 +08:00
yihaoDeng b82f27ec03 tsc: handle schedule error 2022-09-13 17:48:57 +08:00
dapan1121 dc4504b4c2 feat: support table name prefix/suffix config 2022-09-05 15:09:23 +08:00
dapan1121 150956ffd3 enh: update tbMeta after creating table 2022-08-24 13:19:52 +08:00
dapan1121 0ebd3281c5 enh: update table meta after creating table 2022-08-23 18:26:27 +08:00
dapan1121 9cd7c54e25 fix: fix task sched crash issue 2022-08-12 10:41:02 +08:00
slzhou aa81107a58 fix: fix table meta size calculation error 2022-08-08 16:08:58 +08:00
dapan1121 bc7698366a enh: launch tables in same db 2022-08-04 11:11:26 +08:00
dapan1121 85684cebb8 fix: fix mem leak 2022-07-20 18:48:27 +08:00
dapan1121 03e9b15237 fix: fix taosc memory leak 2022-07-18 13:32:17 +08:00
yihaoDeng 42d6ab3b00 refactor client queue 2022-07-12 20:00:26 +08:00
Shengliang Guan a5e8ddbc56 refactor: adjust logs 2022-07-08 18:00:19 +08:00
wangmm0220 2c6f3e6971 feat: tmq get meta with json format 2022-07-06 16:02:55 +08:00
dapan1121 3ffd975917 enh: refactor scheduler code 2022-07-04 09:08:57 +08:00
dapan1121 211ae46a05 enh: refactor scheduler code 2022-07-02 16:59:49 +08:00
wangmm0220 4e6b3d72ac Merge branch '3.0' into feature/TD-13041 2022-07-01 16:54:18 +08:00
wangmm0220 085ace59e0 fix:to_json() function 2022-07-01 16:47:54 +08:00
dapan1121 068924cc62
Merge pull request #14385 from taosdata/feature/queryredirect
feat: support query redirect
2022-06-30 18:03:17 +08:00
afwerar 05b4f8b273 os: support-gcc4.8-compile 2022-06-30 15:54:30 +08:00
dapan1121 6d8fd7e506 feat: query redirect 2022-06-29 10:51:22 +08:00
dapan1121 7beac65a73
Merge pull request #14303 from taosdata/hotfix/resetquerycache
fix: fix reset query cache crash issue
2022-06-29 08:54:42 +08:00
dapan1121 4a55ed07b3 feature: query redirect 2022-06-28 10:34:51 +08:00
dapan1121 e851977da0 Merge branch '3.0' into enh/stopquery 2022-06-26 15:19:35 +08:00
dapan1121 4ad36f714d fix: fix reset query cache issue 2022-06-24 20:53:52 +08:00
yihaoDeng a2b62cba42 handle except 2022-06-24 17:07:17 +08:00
dapan1121 94a2b6d945 enh: refactor show variables 2022-06-24 15:18:40 +08:00
yihaoDeng 23d1e55718 handle except 2022-06-23 20:29:14 +08:00
yihaoDeng 3b1664d9e4 feat: refactor rpc code 2022-06-22 18:50:39 +08:00
dapan1121 66cfe3a3fc feat: show dnode variables 2022-06-22 17:17:18 +08:00
dapan1121 4a8c9db884 Merge branch '3.0' into feature/showdnodevariables 2022-06-21 21:07:44 +08:00
dapan1121 692f5f0e01 feat: show dnode variables 2022-06-21 21:05:47 +08:00
dapan1121 0f148c6f47 feat: show create table 2022-06-21 16:45:59 +08:00
dapan1121 b084be71f6 feat: show create table 2022-06-21 09:18:53 +08:00
dapan1121 be2935cba6 feat: show create table 2022-06-20 20:58:36 +08:00
dapan1121 88aff7bae1 Merge branch '3.0' into feature/showcreate 2022-06-20 13:35:18 +08:00
dapan1121 40879a80fe feat: show create table 2022-06-20 13:32:21 +08:00
Yihao Deng 2941254a2b
Merge branch '3.0' into enh/trace1 2022-06-18 18:26:26 +08:00
yihaoDeng 5401c68706 enh: add trace 2022-06-18 14:07:54 +08:00
dapan1121 b3f9f81b61 support show apps 2022-06-16 21:06:04 +08:00
dapan1121 eff9f9be4d add sma update 2022-06-13 14:06:11 +08:00
dapan1121 31f3bed347 support index cache 2022-06-11 20:39:16 +08:00
dapan1121 deaa295fb5
Merge branch '3.0' into feature/3_liaohj 2022-06-08 20:44:01 +08:00
dapan1121 cd56e3b11f collect db table list 2022-06-08 15:30:57 +08:00