Commit Graph

719 Commits

Author SHA1 Message Date
kailixu f99d193335 feat: user config dnode procedure 2024-03-29 10:25:19 +08:00
kailixu 374ef4593c feat: encryptions/encrypt_key grammar 2024-03-26 19:56:15 +08:00
54liuyao 135bdb37a0 Merge branch 'feat/TS-4243-3.0' of https://github.com/taosdata/TDengine into feat/ly-TS-4243-3.0 2024-03-26 16:38:51 +08:00
Hongze Cheng 93ca55954f more code change 2024-03-26 15:11:15 +08:00
54liuyao a02535c3ab Merge branch 'feat/TS-4243-3.0' of https://github.com/taosdata/TDengine into feat/ly-TS-4243-3.0 2024-03-25 11:15:21 +08:00
Haojun Liao ef6ea16d64 other: merge 3.0 2024-03-22 17:57:25 +08:00
Haojun Liao 9f492a8962 other: merge 3.0 2024-03-22 17:53:11 +08:00
54liuyao a60f390cdc stream primary key 2024-03-21 10:50:07 +08:00
dapan1121 65c57e88cd Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-03-20 15:48:43 +08:00
dapan1121 dcc650521a Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-03-19 16:04:15 +08:00
Shungang Li 3a656c3595 feat: support 2 replica with arbitrator 2024-03-19 09:30:35 +08:00
factosea c6adba9bfc fix: merge error 2024-03-14 19:56:19 +08:00
facetosea 6678a65dc4 merge ts-4243 2024-03-14 19:06:34 +08:00
kailixu 9901825bb0 enh: support binary/hex integer 2024-03-13 15:12:21 +08:00
factosea e76e85ee01 compress param cannot be empty 2024-03-11 11:39:19 +08:00
kailixu 433179af0d fix: unify tag value parsing syntax 2024-03-10 22:14:57 +08:00
factosea a49c6c0876 alter table column compress 2024-03-08 16:33:16 +08:00
factosea 30e52bb71a col compress sql parse 2024-03-07 18:06:15 +08:00
slzhou 87c8f1aa82 Merge branch '3.0' of github.com:taosdata/TDengine into feat/TS-4243-3.0 2024-02-21 13:09:36 +08:00
dapan1121 98ed2458ea Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-02-20 17:39:51 -08:00
54liuyao af1893d109 merge 3.0 2024-02-19 18:30:12 +08:00
dapan1121 b26716f2e8 Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-02-18 22:15:43 -08:00
factosea e17cc16235 enh: like supported on show views 2024-02-19 13:10:27 +08:00
54liuyao ea9353b9fd merge 3.0 2024-02-04 16:04:23 +08:00
slzhou 4a6317a047 Merge branch '3.0' of github.com:taosdata/TDengine into feat/TS-4243-3.0 2024-02-02 11:29:04 +08:00
Haojun Liao 0fe9c05c5f
Merge pull request #24704 from taosdata/fix/3_liaohj
fix(stream): take ver snapshot for all vgroups
2024-02-01 17:07:36 +08:00
Haojun Liao cb2ea4a721 fix(stream): take ver snapshot for all vgroups before launching stream with fill-history option opened. 2024-02-01 11:37:57 +08:00
kailixu a860e9039d feat: support uniq grant 2024-01-31 13:52:03 +08:00
kailixu e945586ad9 feat: support uniq grant 2024-01-31 13:44:00 +08:00
dapan1121 50c420e6b9 enh: support window join 2024-01-30 19:19:44 +08:00
54liuyao 9e86dfaee7 stream count window sliding 2024-01-26 15:56:26 +08:00
shenglian zhou 48b5411ba9 feat: first parser and ast generation 2024-01-24 17:17:19 +08:00
kailixu 1daa224651 feat: support uniq grant 2024-01-18 17:49:11 +08:00
kailixu 76558da849 feat: support uniq grant 2024-01-18 15:23:38 +08:00
54liuyao 3bbfb26e09 stream count window 2024-01-17 14:22:19 +08:00
dapan1121 bc38885856 Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2023-12-19 11:22:41 +08:00
dapan1121 279b2aa10a enh: add join ut 2023-12-19 11:17:39 +08:00
kailixu 70006bb711 feat: support alter cluster 2023-12-18 16:34:31 +08:00
kailixu 9fa90fc953 Merge branch '3.0' into feat/TD-27463-3.0 2023-12-18 14:20:10 +08:00
kailixu b54f816c2a feat: support uniq grant 2023-12-18 14:18:52 +08:00
Hongze Cheng 04e84ba152 Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/TS-4229 2023-12-06 16:43:00 +08:00
dapan1121 3b4a8f6ead Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2023-12-01 08:33:04 +08:00
dapan1121 abdf6d337a enh: push down conditions 2023-11-29 20:06:30 +08:00
Bob Liu 5c5efa34eb fix crash when insert big csv 2023-11-29 01:53:13 +08:00
dapan1121 84cc80be1c fix: add window_offset translate 2023-11-28 14:35:11 +08:00
dapan1121 19752b020f feat: support more join type 2023-11-27 20:01:00 +08:00
slzhou c53bd04894 feat: after select compacts 2023-11-23 15:26:21 +08:00
slzhou 3de91de7f9 fix: bi mode create tbname col error 2023-11-23 11:18:05 +08:00
slzhou 40a28a6e4b fix: refactor dependency between community and enterprise 2023-11-22 08:47:35 +08:00
shenglian zhou 83c1db07a3 enhance: tbname col to func 2023-11-21 13:53:10 +08:00
slzhou 9ad86d7753 commit: add create show stmt support 2023-11-16 11:41:02 +08:00
shenglian zhou b51e4b18ce feat: compact return id and kill compact id 2023-11-16 11:03:56 +08:00
slzhou 4a2c52783b Merge branch '3.0' of github.com:taosdata/TDengine into szhou/insert-stb-tbname 2023-11-01 14:10:02 +08:00
dapan1121 91df56fcf0 Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-31 18:44:54 +08:00
slzhou 041ef1ef83 enhance: colvals of table data cxt is not used in insert stb syntax 2023-10-31 17:05:37 +08:00
dapan1121 b2fea84a3a fix: case issue and bugs 2023-10-30 19:14:31 +08:00
kailixu c77153cb81 enh: use placeholder '-' for interval of 1st retention level 2023-10-30 14:02:31 +08:00
dapan1121 6f0b634f95 Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-30 10:24:16 +08:00
dapan1121 9801d5d7b7 fix: desciribe view and memory issues 2023-10-27 19:28:22 +08:00
wangjiaming0909 cf158ab428 feat: support all utf8 characters as alias 2023-10-27 15:23:26 +08:00
dapan1121 099f72e84a fix: memory issues 2023-10-27 11:36:17 +08:00
shenglian zhou ae1bac251a enhance: finished skeleton 2023-10-24 16:08:08 +08:00
dapan1121 ab98f7623c Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-23 08:44:46 +08:00
dapan1121 42f440b0fb Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-20 08:46:32 +08:00
dapan1121 969b002936 enh: support view privilege 2023-10-20 08:41:49 +08:00
wangjiaming0909 04c60486e9 feat: support interval syntax of quoted duration and default unit 2023-10-19 15:46:19 +08:00
dapan1121 afe963a9d1 enh: support view privilege 2023-10-19 08:31:31 +08:00
dapan1121 7c8cf28b37 feat: add privileges 2023-10-16 19:53:08 +08:00
dapan1121 a0699d758c Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-13 16:51:38 +08:00
slzhou b78a32eb1a Merge branch '3.0' of github.com:taosdata/TDengine into szhou/pseudo-column-aliasname 2023-10-12 11:01:50 +08:00
dapan1121 478de7ae56 feat: add show create view implement 2023-10-11 10:38:22 +08:00
dapan1121 d229492616 Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-09 18:34:08 +08:00
dapan1121 6c8db261f3 feat: support show views command 2023-10-09 17:19:36 +08:00
dapan1121 7c7cf2b1aa enh: support balance group leader on vgroup_id 2023-10-09 15:46:41 +08:00
dapan1121 5b639a172d feat: support query from view 2023-10-08 18:36:06 +08:00
slzhou dee6006ed9 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/continue-coing 2023-09-27 10:02:49 +08:00
wade zhang f6134b42d7
Merge pull request #23036 from taosdata/feat/TS-4011-3.0
feat/TS-4011: adjust config 'keep_time_offset' level from dnode to db
2023-09-26 14:25:54 +08:00
Shungang Li 743a5b0640 feat: add db config item keep_time_offset 2023-09-25 15:46:08 +08:00
shenglian zhou df19645a90 fix: check table is super table when rewrite star for bi tool 2023-09-22 22:02:30 +08:00
slzhou fb62588dd3 fix: nodesIsStar and nodesIsTableStar 2023-09-22 15:26:39 +08:00
slzhou 18f8e0dc8d fix: enterprise/community bi support 2023-09-22 14:31:47 +08:00
slzhou 72307ab877 enhance: move bi to enterprise 2023-09-22 14:27:01 +08:00
dapan1121 a61d90f672 enh: remove column list 2023-09-22 11:36:53 +08:00
dapan1121 a67b0c99fc feat: support create/drop view 2023-09-21 19:28:07 +08:00
dapan1121 cc08a5ee87 fix: add query sql 2023-09-20 19:30:40 +08:00
slzhou 6496bb3d31 Merge branch 'szhou/show-db-table' into szhou/continue-coing 2023-09-20 14:19:40 +08:00
slzhou 0c6338dc15 fix: fix address sanitizer error 2023-09-20 13:25:26 +08:00
slzhou 1f1657a160 fix: fix address sanitizer error 2023-09-20 11:50:32 +08:00
slzhou 1c27c2123f enhance: select `tbname` from (select tbname from d.st) 2023-09-20 11:06:59 +08:00
slzhou 951786669d fix: modify show_kind enum value from none to all 2023-09-20 08:39:57 +08:00
slzhou f4dbd5d9c9 enhance: show normal/child tables and show user/system databases 2023-09-19 16:14:17 +08:00
dapan1121 14e8db289d feat: support view 2023-09-19 14:19:54 +08:00
shenglian zhou 2773f1e9ac fix: continue coding 2023-09-19 14:03:06 +08:00
shenglian zhou 94a616fcc1 fix: save and continue 2023-09-18 16:59:07 +08:00
slzhou 82dc2de2f4 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/ip-whitelist 2023-08-30 17:11:42 +08:00
shenglian zhou b8205f23bf enhance: ip whitelist before debug 2023-08-30 14:32:46 +08:00
yihaoDeng 89bb80db65 fix create tag error 2023-08-30 10:46:28 +08:00
slzhou f280da26da Merge branch '3.0' of github.com:taosdata/TDengine into szhou/ip-whitelist 2023-08-29 14:16:37 +08:00
dapan1121 1f40da6fef Merge remote-tracking branch 'origin/main' into 3.0 2023-08-28 09:28:55 +08:00
slzhou d5db4b16ba Merge branch '3.0' of github.com:taosdata/TDengine into szhou/tags-after-distinct 2023-08-24 16:57:25 +08:00
Haojun Liao 3c6870275b fix(parser): update the key words for disk io throttling. 2023-08-24 16:45:47 +08:00
slzhou b16470414a enhance: ip range white list to user 2023-08-24 15:54:10 +08:00
slzhou f6dbd0b0e4 fix: select distinct/all tags instead of select tags distinct 2023-08-24 14:03:40 +08:00
wangjiaming0909 366a9cc009 Revert "feat: support column comment"
This reverts commit dcbef83dea.
2023-08-24 13:54:27 +08:00
wangjiaming0909 c2af41d0d0 Revert "feat: support alter table add column with comment"
This reverts commit cb027cc5c5.
2023-08-24 13:48:35 +08:00
dapan1121 efc5589aa2 Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-08-18 14:11:26 +08:00
slzhou 4e2a26e8be Merge branch '3.0' of github.com:taosdata/TDengine into szhou/select-tags-scan 2023-08-18 08:46:17 +08:00
slzhou 85d1dbe00a Merge branch '3.0' of github.com:taosdata/TDengine into szhou/select-tags-scan 2023-08-17 16:27:37 +08:00
dapan1121 1b038d2dcd Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-08-17 16:08:39 +08:00
Benguang Zhao 7735e6f388 Merge branch 3.0 to FEAT/TD-25699-3.0 2023-08-17 16:04:23 +08:00
Benguang Zhao 80518cf82b feat: support sql command show vnodes for all dnodes 2023-08-16 20:17:11 +08:00
dapan1121 91d6734b34 fix: join condition push down issue 2023-08-16 14:28:39 +08:00
Benguang Zhao 8b26ea7a55 enh: add command show vnodes on dnode <dnode_id> 2023-08-16 13:31:52 +08:00
wangjiaming0909 cb027cc5c5 feat: support alter table add column with comment 2023-08-16 11:07:40 +08:00
wangjiaming0909 dcbef83dea feat: support column comment 2023-08-15 16:30:02 +08:00
slzhou 514da6e1b0 fix: select tags and set tag scan execution mode 2023-08-15 15:16:57 +08:00
shenglian zhou 9fb9d863b9 enhance: modify sql.y 2023-08-15 11:29:17 +08:00
dapan1121 31b0bcd716 fix: taosd crash issue 2023-08-15 08:51:23 +08:00
dapan1121 6a78053b51 feat: add hint supporting 2023-08-14 17:21:15 +08:00
dapan1121 ae0426717a feat: add hint option 2023-08-14 10:47:56 +08:00
dapan1121 b4b9a12d61 fix: memory issue 2023-08-14 09:06:21 +08:00
dapan1121 c9656d3f77 fix: fix memory issues 2023-08-11 17:39:41 +08:00
wangjiaming0909 6713882b48 fix: window fill ts range check with int64 overflow 2023-07-28 14:17:21 +08:00
Ganlin Zhao b058f3c881 add syntax for show tags/index/table tags from db.tb 2023-07-12 13:50:17 +08:00
Ganlin Zhao 5ec94c0697 add syntax for show tags/index/table tags from db.tb 2023-07-12 11:06:47 +08:00
wangjiaming0909 1f71ce9409 feature: get last timestamp before create sma index 2023-07-06 10:33:22 +08:00
wangmm0220 20e616d59d feat:parse sql.y 2023-06-30 19:36:39 +08:00
wangmm0220 af16b62289 fix:modify sql.y 2023-06-30 16:57:29 +08:00
wangmm0220 58c7011e0e feat:support only meta in tmq subscriptions 2023-06-30 11:42:40 +08:00
Haojun Liao 1b9eca5ce0 other: merge main. 2023-06-15 13:03:17 +08:00
dapan1121 73d3c21e21 Merge remote-tracking branch 'origin/3.0' into feat/TD-24499 2023-06-13 11:44:41 +08:00
dapan1121 170182fecd feat: support fill history with sub request 2023-06-12 16:10:54 +08:00
dapan1121 988ee2b57a fix: consumer group issue 2023-06-09 11:13:22 +08:00
dapan1121 01683f6d92
Merge pull request #21527 from taosdata/feat/TS-3048
feat(query): support single point interp
2023-06-06 18:17:20 +08:00
Ganlin Zhao e8eadeb9f5 Merge branch '3.0' into feat/TS-3048 2023-06-06 14:55:12 +08:00
dapan1121 ddd3a53e56 Merge remote-tracking branch 'origin/3.0' into fix/TD-24001 2023-06-02 13:57:34 +08:00
Ganlin Zhao 57c301553b feat(query): support single point interp syntax 2023-05-29 16:40:30 +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
wangmm0220 8c1c2a2f97 fix:add grammar support 2023-05-23 17:47:17 +08:00
dapan1121 4c88fd08de Merge remote-tracking branch 'origin/3.0' into fix/TD-24001 2023-05-23 09:25:37 +08:00
dapan1121 cf7b4593e7 feat: add drop dnode unsafe command 2023-05-16 09:50:10 +08:00
Haojun Liao 99148d6719 other: merge 3.0 2023-05-13 20:02:48 +08:00
dapan1121 2c403266e3 feat: support restore dnode clause 2023-05-09 19:29:57 +08:00
dapan1121 a8c65cd25a feat: support restore dnode clause 2023-05-09 19:19:14 +08:00
dapan1121 7ea23a33bc enh: optimize time line function validation 2023-05-09 16:37:08 +08:00
Xiaoyu Wang dc5235eb92 feat: add pause/resume stream statement 2023-04-24 14:48:33 +08:00
yihaoDeng 917b07348c Merge branch 'fix/rocksdbState' into enh/rocksRevert 2023-04-23 02:37:26 +00:00
dapan1121 3c2fc48e74 feat: support new table_prefix/table_suffix mode 2023-04-21 14:17:07 +08:00