Commit Graph

346 Commits

Author SHA1 Message Date
kailixu a171c0c860 Merge branch '3.0' into fix/TD-21457-3.0 2023-05-23 09:27:31 +08:00
kailixu c75aa54a3d fix: tsdb read and append _wstart for tsma 2023-05-22 20:33:29 +08:00
dapan1121 840eb21825 fix: last(tag) report error issue 2023-05-22 18:19:39 +08:00
kailixu f18fc19d76 fix: tsdb read and tsma _wstart append 2023-05-22 16:13:50 +08:00
dapan1121 e7496d7b82
Merge pull request #21388 from wangjiaming0909/fix/TS-3423
fix: select last(*) ..group by tag return wrong rows of data
2023-05-22 11:13:26 +08:00
Haojun Liao 200c1a367b
Merge pull request #21378 from taosdata/fix/nodisk
fix(query): do some internal refactor, and fix the bug when calender duration exists in sliding and offset.
2023-05-19 19:30:04 +08:00
wangjiaming0909 3dbbe63092 fix: select last(*) ..group by tag return wrong rows of data 2023-05-19 16:50:27 +08:00
slzhou d77eefdc93 fix: change more variable names 2023-05-19 15:43:31 +08:00
slzhou f9da4abdcb fix: change more variable names 2023-05-19 15:38:52 +08:00
shenglian zhou f36b0be17d fix: join eq conditions not only for tag 2023-05-19 14:32:03 +08:00
Haojun Liao 1e020a46c9 other: merge main. 2023-05-19 09:07:35 +08:00
Haojun Liao 041ffa91bd other: merge main. 2023-05-17 15:42:15 +08:00
slzhou 03e77288e8 fix: add on conditions null check and rightRowLocations no longer hides the outer scope rightRowLocations 2023-05-17 10:07:19 +08:00
shenglian zhou a51de5cc93 fix: add restriction 2023-05-16 16:31:58 +08:00
shenglian zhou c6555c3b37 fix: join operator finished 2023-05-16 16:25:55 +08:00
shenglian zhou 629ab2b85f fix: extract tag equal condition 2023-05-15 16:10:11 +08:00
shenglian zhou 0ea8de64df fix: code refactor 2023-05-12 20:20:53 +08:00
slzhou 5b866edae7 fix: disable table count scan optimized when filters and group by both exist 2023-05-12 18:51:18 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
dapan1121 1526eb2923 fix: projection group merge issue 2023-05-08 10:28:07 +08:00
dapan1121 1f25cc57cd fix: projection merge issue 2023-05-06 16:39:40 +08:00
shenglian zhou 93ab81437f enhance: code refactor and operator full implement slimit 2023-04-25 11:08:58 +08:00
shenglian zhou 758427b3c4 fix: use slimit to indicate group for tag scan 2023-04-24 15:48:20 +08:00
shenglian zhou 3a9dddd619 enhance: modify inside isEligibleAgg func 2023-04-20 15:11:12 +08:00
shenglian zhou cc78a6356c fix: do not performace table count scan optimized where there are no agg functions 2023-04-20 13:54:22 +08:00
Xiaoyu Wang 586b3945d1 feat: last queries with tags output can be read from cache 2023-04-19 13:09:11 +08:00
Xiaoyu Wang 6669c3a5ad feat: last queries with tags output can be read from cache 2023-04-18 17:13:14 +08:00
shenglian zhou 71d59281ff fix: select * from (select * from t order by ts desc) order by ts 2023-04-10 14:03:56 +08:00
Minglei Jin 6a3bcf4a71 ehn(plan/optimizer): remove tbname fetching with cached groupby 2023-04-03 19:08:57 +08:00
Haojun Liao 0d9d2ea293 fix(query): do some internal refactor, and fix the bug when calender time duration exists in sliding and offset. 2023-02-17 18:31:32 +08:00
Xiaoyu Wang 3382a24a69 merge main 2023-02-10 18:03:11 +08:00
54liuyao 40987fa507 feat:do not check whether the expired data has been update 2023-02-09 11:14:28 +08:00
Xiaoyu Wang 98e2fa2d7b feat: add ignore update option for create stream 2023-02-08 18:46:12 +08:00
Xiaoyu Wang f1d6262630 enh: optimize execute plan when 'tail' function is used with 'partition by' clause 2023-01-18 12:26:01 +08:00
Xiaoyu Wang 554b8c6418 enh: optimize execute plan when 'tail' function is used with 'partition by' clause 2023-01-18 04:43:04 +08:00
Xiaoyu Wang 30381ec446 fix: sma optimize memory leak 2023-01-16 11:03:53 +08:00
Xiaoyu Wang fdde287ca9 merge main 2023-01-04 11:43:20 +08:00
dapan1121 e6c5fd874a
Merge pull request #19175 from taosdata/szhou/fixbugs2
enhance: remove assert
2022-12-30 09:53:59 +08:00
Ganlin Zhao 8f7ed5a267 fix bug 2022-12-29 09:54:06 +08:00
Ganlin Zhao 8460171cb6 fix(query): fix count/hyperloglog return additional row in group by
when queryPolicy is set to 3.
2022-12-28 18:53:51 +08:00
Ganlin Zhao 7bd98ec700 fix(query): fix count/hyperloglog return additional row in group by
when queryPolicy is set to 3.
2022-12-28 17:29:00 +08:00
Xiaoyu Wang 0fd305158d enh: when there is _wend and _wduration in the query, you can use tsma optimization 2022-12-28 14:07:58 +08:00
slzhou e1b1ae575b fix: select tbname from system tables 2022-12-26 14:39:00 +08:00
Xiaoyu Wang bc413b8fff feat: add stream option 'delete_mark' 2022-12-06 16:07:11 +08:00
Xiaoyu Wang 233377444c enh: ins_table count optimize 2022-12-01 17:57:53 +08:00
Xiaoyu Wang eea8d7bebb enh: ins_table count optimize 2022-12-01 10:48:36 +08:00
Xiaoyu Wang 9465d100a2 enh: ins_table count optimize 2022-11-30 15:31:01 +08:00
Xiaoyu Wang 37b65c16c8 enh: ins_tables count optimize 2022-11-29 14:59:48 +08:00
Xiaoyu Wang 555f2cb981 merge 3.0 2022-11-29 13:16:54 +08:00
Xiaoyu Wang cf245fa520 enh: last cache optimize 2022-11-23 12:56:16 +08:00
Xiaoyu Wang bc180e39c9 enh: ins_tables optimize 2022-11-22 16:39:30 +08:00
Xiaoyu Wang 469fcd314e enh: ins_tables optimize 2022-11-21 18:44:04 +08:00
Xiaoyu Wang 7cda5c2752 enh: fill value supports implicit type conversion 2022-11-17 16:24:56 +08:00
Xiaoyu Wang 1963761cc2 fix: asan error 2022-11-15 17:27:22 +08:00
Haojun Liao 03f4918b3b refactor: do some internal refactor. 2022-11-04 18:46:48 +08:00
Xiaoyu Wang b7046b568d fix: push down limit 2022-10-28 11:51:43 +08:00
Xiaoyu Wang 0840e79f90 Merge remote-tracking branch 'origin/3.0' into fix/3.0_bugfix_wxy 2022-10-28 10:46:31 +08:00
Xiaoyu Wang 02ac6fa552 enh: add unit test and delete useless code 2022-10-26 17:01:55 +08:00
Haojun Liao 8cf3339b25 enh(query): enable the limit clause to be push down to the table scan operator. 2022-10-26 11:31:31 +08:00
Xiaoyu Wang d63eee8b49 fix: alter table check 2022-10-25 19:00:46 +08:00
Xiaoyu Wang b7056f58b7 fix: alter table check 2022-10-25 16:59:05 +08:00
Xiaoyu Wang c38b200131 fix: wrong permissions of 'show variables' command 2022-10-25 11:08:56 +08:00
Xiaoyu Wang 0fdce91b5a fix: wrong permissions of 'show variables' command 2022-10-24 16:34:10 +08:00
Xiaoyu Wang b3658f983f fix: last constant error 2022-10-20 14:35:34 +08:00
Xiaoyu Wang 35e829dc28 fix: cache inapplicability 2022-10-19 15:58:51 +08:00
Haojun Liao f7fdeecc44
Merge branch '3.0' into feature/3_liaohj 2022-10-19 11:23:55 +08:00
Haojun Liao 60e7f2800b fix(query): fix bug in cached last query. 2022-10-18 17:39:28 +08:00
Xiaoyu Wang eaa2a344e1 fix: plan problem with 'partition by tag group by tag' statement 2022-10-18 15:01:52 +08:00
Xiaoyu Wang 0228caaa0d enh: last cache optimize 2022-10-18 11:38:59 +08:00
Xiaoyu Wang 78589248f2
Merge branch '3.0' into fix/3.0_bugfix_wxy 2022-10-18 09:53:08 +08:00
Xiaoyu Wang 9abea76791 fix: do coverity scan 2022-10-17 15:43:42 +08:00
Haojun Liao 87516ea332 fix(query): fix bug in group by tag. 2022-10-17 13:00:31 +08:00
Haojun Liao aa9c99fa53 Merge branch '3.0' into feature/3_liaohj 2022-10-16 12:50:05 +08:00
Hongze Cheng 329b750701
Revert "enh(query): opt group by tag perf." 2022-10-15 16:14:50 +08:00
Haojun Liao aa04aee7fd enh(query): opt group by tag perf. 2022-10-14 18:49:19 +08:00
Xiaoyu Wang 9a946541a2 enh: do coverity scan 2022-10-13 18:14:44 +08:00
Haojun Liao 18740e7b48 other:merge 3.0, and support last query cache 2022-10-13 15:35:51 +08:00
Xiaoyu Wang d6374a726a fix: some problems of parser 2022-10-12 16:32:29 +08:00
Xiaoyu Wang 6954d4902b fix: some problems of parser 2022-10-12 14:18:03 +08:00
Xiaoyu Wang 1d62834e5c feat(stream): tag and child table name improvement 2022-09-26 18:39:47 +08:00
Xiaoyu Wang 0321b8c088 fix: avg function data scan optimization 2022-09-22 15:08:07 +08:00
Xiaoyu Wang faa731827e enh: add the queryPlannerTrace parameter to control the debug output of the planner 2022-09-01 14:44:01 +08:00
Shengliang Guan 52f8fbb997
Merge pull request #16473 from taosdata/enh/3.0_planner_optimize
enh: super table scan requires project operator to merge packets to improve performance
2022-08-30 09:07:52 +08:00
Xiaoyu Wang a39e6f7d92 enh: super table scan requires project operator to merge packets to improve performance 2022-08-29 14:01:18 +08:00
Xiaoyu Wang 4895f19876 fix: plan problem with sorting the first column of the system table 2022-08-25 18:39:23 +08:00
Xiaoyu Wang 03784406c4 fix: improve create stream check 2022-08-11 22:08:19 +08:00
Haojun Liao 4d8842c21f other:merge 3.0 2022-08-08 16:37:37 +08:00
Xiaoyu Wang 9bfc7ba69c fix: plan problem of create stream statement 2022-08-05 19:40:06 +08:00
Xiaoyu Wang 0f3a7e314e fix: plan problem of create stream statement 2022-08-05 17:37:58 +08:00
Haojun Liao 4cd7af0ecf other: merge 3.0 2022-08-03 19:02:43 +08:00
Xiaoyu Wang c8c9bbdeb1 enh: last_row function scan in reverse order 2022-08-03 17:04:14 +08:00
slzhou 5b8207556c fix: taken onCondtion of join node into account when eliminate projects 2022-08-02 14:47:29 +08:00
Xiaoyu Wang f06a36b171
Merge pull request #15607 from taosdata/feature/3.0_prof_wxy
enh: write performance optimization
2022-08-01 09:56:15 +08:00
Xiaoyu Wang 5a3c377c68 enh: write performance optimization 2022-07-30 19:23:06 +08:00
Xiaoyu Wang b08a28d559 fix: some problems of planner 2022-07-30 13:14:44 +08:00
Xiaoyu Wang f929187e63 enh: last function optimize 2022-07-29 18:30:03 +08:00
Xiaoyu Wang 547ab7028b enh: last function optimize 2022-07-29 13:38:24 +08:00
Xiaoyu Wang d7a525f21f Merge remote-tracking branch 'origin/3.0' into feature/3.0_debug_wxy 2022-07-29 09:28:52 +08:00
Xiaoyu Wang 9053645ab7 feat: super table order by primary key optimization 2022-07-28 20:24:49 +08:00
Xiaoyu Wang fc0780c35a enh: last function optimize 2022-07-28 19:27:37 +08:00
Xiaoyu Wang 421c8eaf71 enh: last function optimize 2022-07-28 17:38:55 +08:00
slzhou@taodata.com 82fcb44257 fix: compare scan target and agg target when tag scan optimize 2022-07-28 17:18:39 +08:00
Xiaoyu Wang 015193e816 feat: super table order by primary key optimization 2022-07-25 15:17:53 +08:00
Xiaoyu Wang 3158f705fc Merge remote-tracking branch 'origin/3.0' into feature/3.0_debug_wxy 2022-07-25 11:16:24 +08:00
dapan1121 3cc22ef10b fix: fix plan optimize issue 2022-07-23 19:52:15 +08:00
Xiaoyu Wang 616539a700 feat: super table order by primary key optimization 2022-07-23 17:30:00 +08:00
Xiaoyu Wang dceec792bc
Merge pull request #15237 from taosdata/feature/3.0_debug_wxy
fix: plan problem caused by project eliminate optimize
2022-07-22 13:51:07 +08:00
Xiaoyu Wang 958f3586c0 fix: the problem of data loss when interval is used for outer query 2022-07-22 11:41:18 +08:00
Xiaoyu Wang d7c4549324 fix: the problem of data loss when interval is used for outer query 2022-07-22 10:38:11 +08:00
slzhou@taodata.com a8325b09e0 fix: disable tag scan when the grouping set is not column and distince would create grouping keys consisted of grouping set 2022-07-22 08:59:10 +08:00
Xiaoyu Wang dad14a28c9 merge 3.0 2022-07-21 19:24:14 +08:00
slzhou@taodata.com c8969d0ec4 fix: remove scan targets that does not relate to root agg targets 2022-07-21 15:50:20 +08:00
Xiaoyu Wang c54daccf2d fix: plan problem caused by project eliminate optimize 2022-07-21 14:35:36 +08:00
shenglian zhou 4901b59530 fix: optimizing to do tag scan when tbname exists 2022-07-19 19:13:15 +08:00
shenglian zhou ea102128ba fix: remove scan cols and ts target from scan node when tag scan 2022-07-19 14:25:38 +08:00
shenglian zhou 792170b0f5 fix: remove agg node after apply tag scan optimization 2022-07-19 09:48:04 +08:00
Xiaoyu Wang e5e9252388 some problems of planner 2022-07-16 17:40:54 +08:00
shenglian-zhou f8276707e5
Merge pull request #14973 from taosdata/szhou/feature/user-tags
fix: enable tag scan optimization when the scan cols is empty before adding ts col
2022-07-16 09:29:40 +08:00
shenglian zhou cede4b7624 fix: enable tag scan optimization when the scan cols is empty before adding ts col 2022-07-15 18:01:04 +08:00
Haojun Liao f60f821c13 fix(query): fix partition by bug for last_row query. 2022-07-15 15:04:22 +08:00
Xiaoyu Wang 873ff96bc1 fix: a problem of last_row function plan 2022-07-15 11:01:19 +08:00
Xiaoyu Wang 31e29dfc38 feat: the query uses the 'cachelast' option to decide whether to optimize the last_row function 2022-07-15 08:43:40 +08:00
Xiaoyu Wang d894e959ee fix: client module memory leak problem 2022-07-14 20:16:39 +08:00
Xiaoyu Wang 570f036c63 Merge remote-tracking branch 'origin/3.0' into feature/3.0_debug_wxy 2022-07-14 09:52:51 +08:00
Xiaoyu Wang db65b890c8 feat: support pseudo columns such as _qstart, _qend and _qduration 2022-07-13 15:14:13 +08:00
Xiaoyu Wang 43b5ca1efe feat: support pseudo columns such as _qstart, _qend and _qduration 2022-07-13 15:13:01 +08:00
slzhou@taodata.com 77b1f92da9 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/fix/td-17263 2022-07-13 13:08:25 +08:00
slzhou@taodata.com 65e6538352 fix: optimize the scan only when interval window 2022-07-13 13:07:10 +08:00
shenglian-zhou f797e60f3f
Merge pull request #14777 from taosdata/szhou/td-17001
feat: tag scan optimization
2022-07-12 09:59:33 +08:00
slzhou@taodata.com 5e50bf8dc8 fix: avoid tag scan when scan cols is not empty 2022-07-12 09:24:57 +08:00
slzhou@taodata.com f26063202e feat: tag scan optimization 2022-07-11 18:34:12 +08:00
Xiaoyu Wang 12759683ca fix: some problems of 'partition by' execution plan 2022-07-11 18:23:54 +08:00
Xiaoyu Wang 6a845b746c fix: some problems of parser 2022-07-11 15:15:39 +08:00
Xiaoyu Wang 72738040a9 fix: some problem of parser and planner 2022-07-10 16:44:50 +08:00
Xiaoyu Wang df06d22cb3 fix: some problem of parser and planner 2022-07-08 17:35:11 +08:00
slzhou 90b3912061 fix: add filter to session/state/interval operator 2022-07-07 09:29:51 +08:00
slzhou 1a70a5f904 feat: push down filter from sort and partition 2022-07-06 17:13:29 +08:00
Xiaoyu Wang a67eb1a9a0 eat: sql command 'insert ... select' 2022-07-06 11:55:47 +08:00
slzhou@taodata.com dd1dbe22ff feat: remove restriction on logcial child type 2022-07-05 19:12:42 +08:00
slzhou@taodata.com 26e4fcf56d feat: push project cond to child 2022-07-05 19:08:08 +08:00
Xiaoyu Wang cf9a6deaa5
Merge pull request #14543 from taosdata/feature/3.0_debug_wxy
fix: execution plan problem in the mode of using qnode as much as possible
2022-07-05 18:48:02 +08:00
slzhou 64d2456073 fix: when there are no where condtions 2022-07-05 15:16:52 +08:00
slzhou b719e3ce24 fix: extract merge cond when no where condition 2022-07-05 14:56:40 +08:00
Xiaoyu Wang d223a6624b fix: execution plan problem in the mode of using qnode as much as possible 2022-07-05 14:55:32 +08:00
slzhou 73e0e09dd8 feat: split join on condition into merge condition and on condition 2022-07-05 13:42:49 +08:00
slzhou 024796599c Merge branch '3.0' of github.com:taosdata/TDengine into szhou/feature/push-cond-child-proj 2022-07-04 20:14:15 +08:00
slzhou a7c9ed9133 feat: push condition to child join operator 2022-07-04 20:01:07 +08:00
slzhou a380e0cd7c feat: merge condition, on condition and other conditions 2022-07-04 19:49:16 +08:00
Xiaoyu Wang 988cffcce6 fix: some problems of parser and planner 2022-07-02 18:19:10 +08:00
Xiaoyu Wang 2a114a6b83 fix: a problem of group by tbname 2022-07-01 21:06:08 +08:00