Commit Graph

349 Commits

Author SHA1 Message Date
shenglian zhou 220709c9ae fix: fix compiler warning in taosudf.h 2022-12-05 10:14:00 +08:00
Shengliang Guan 6d70f48802
Merge pull request #18592 from taosdata/feature/3_liaohj
enh(query): optimize query perf.
2022-12-02 21:00:35 +08:00
Haojun Liao 4fef284cfe refactor: do some internal refactor. 2022-11-30 21:26:27 +08:00
slzhou 323e52b8c5 Merge branch 'enh/3.0_planner_optimize' into szhou/table-count-scan 2022-11-30 15:43:41 +08:00
Xiaoyu Wang cfbcf92c1f Merge remote-tracking branch 'origin/3.0' into enh/3.0_planner_optimize 2022-11-30 14:29:34 +08:00
slzhou 6d86fb5b51 Merge branch 'enh/3.0_planner_optimize' into szhou/table-count-scan 2022-11-29 22:19:36 +08:00
Xiaoyu Wang 555f2cb981 merge 3.0 2022-11-29 13:16:54 +08:00
Ganlin Zhao 8fba0b631c Merge branch '3.0' into fix/TS-2149 2022-11-28 01:02:57 +08:00
Ganlin Zhao ab86b6ba47 fix hyperloglog bugs 2022-11-28 00:30:39 +08:00
Haojun Liao 9a208b2d09 other: merge 3.0 2022-11-24 17:08:15 +08:00
shenglian zhou 7f6ff39648 feat: table merge scan save work 2022-11-23 19:47:24 +08:00
Xiaoyu Wang 6a50e9e271 Merge remote-tracking branch 'origin/3.0' into enh/3.0_planner_optimize 2022-11-16 10:58:06 +08:00
Xiaoyu Wang 40c7562470 enh: optimize statement for querying the number of sub tables of the super table 2022-11-15 16:38:51 +08:00
dapan1121 c0463e46c9 fix: truncate show create table result 2022-11-14 15:48:01 +08:00
Haojun Liao c888cbf068 refactor: do some internal refactor. 2022-11-14 14:14:24 +08:00
dapan1121 a5b1cfc9a2 fix: extend show create table result width 2022-11-14 11:27:38 +08:00
Haojun Liao 03f4918b3b refactor: do some internal refactor. 2022-11-04 18:46:48 +08:00
Xiaoyu Wang 1b179f65b2 fix: interp _irowts error 2022-11-01 13:34:10 +08:00
Xiaoyu Wang 0228caaa0d enh: last cache optimize 2022-10-18 11:38:59 +08:00
Hongze Cheng 4cc94968ee refact: format header file 2022-10-13 11:09:43 +08:00
Haojun Liao 68842b9c64 refactor: do some internal refactor. 2022-10-10 14:55:58 +08:00
Xiaoyu Wang 73642ac3a2 feat: sql command 'show table tags from table_name' 2022-09-29 16:16:49 +08:00
Xiaoyu Wang 8caa36299c feat: add the _irowts pseudo column to output the timestamp of the interp 2022-09-27 15:23:24 +08:00
Haojun Liao 33c075542d refactor(query): do some internal refactor. 2022-09-21 10:26:55 +08:00
Liu Jicong 4c6a8bbc95 feat(stream): stream state support tuple 2022-09-14 16:50:42 +08:00
Xiaoyu Wang 2ccc7471af enh: query get dbcfg optimization 2022-08-31 11:36:59 +08:00
Haojun Liao 37618513a6
Merge branch '3.0' into feature/3_liaohj 2022-08-29 22:47:18 +08:00
Haojun Liao ba8b10e27b refactor(query): do some internal refactor. 2022-08-29 18:47:46 +08:00
Shengliang Guan c581212712
Merge pull request #16439 from taosdata/feature/3_liaohj
feature(query): support last function cache and retrieve data.
2022-08-28 21:27:13 +08:00
Haojun Liao 655dbb47c1 refactor(query): do some internal refactor. 2022-08-26 19:19:48 +08:00
Haojun Liao 60d9acb7b4 feature(query): support last function cache and retrieve data. 2022-08-26 15:27:19 +08:00
slzhou f3890f7421 feat: support udf merge in udfd 2022-08-26 14:27:15 +08:00
Haojun Liao 1c06206000 other:merge 3.0 2022-08-25 11:01:36 +08:00
54liuyao 25b735f0e3 feat(stream): delete result 2022-08-22 14:05:19 +08:00
Ganlin Zhao c017e4387f fix(query): forbid interp in super table query
TD-18331
2022-08-11 16:17:38 +08:00
Haojun Liao d8455841e0 refactor: do some internal refactor. 2022-08-10 20:12:32 +08:00
slzhou e9f79254fb fix: merge spread into output when input spread has result 2022-08-08 15:23:55 +08:00
shenglian zhou 03aae25b63 fix: function rename and trigger ci test 2022-08-07 06:39:26 +08:00
shenglian zhou 81d3a2c385 fix: last/first must return not null values 2022-08-06 21:39:53 +08:00
Ganlin Zhao b0becf1ca9 fix(query): fix n-1 function if select column after function position
result row is incorrect.

fix/TD-18040
2022-08-01 14:15:16 +08:00
Xiaoyu Wang 41b8ef7d93 enh: cumulative functions support mixed use 2022-07-29 18:00:48 +08:00
Xiaoyu Wang b12fa7494e enh: add interface for dynamic control data scan 2022-07-27 18:28:54 +08:00
Ganlin Zhao db48f118a1 enh(query): add selectivity for diff function
TD-17659
2022-07-25 15:34:46 +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
dapan1121 9ec14ece62 fix: fix taosd mem leak 2022-07-16 18:58:29 +08:00
Xiaoyu Wang aec4c2313a fix: multi-rows function validity check 2022-07-15 16:17:00 +08:00
Haojun Liao 707f0a837a fix(query): set correct fill output object. 2022-07-14 20:11:29 +08:00
Xiaoyu Wang 4830b7d9d3 feat: support pseudo columns such as _qstart, _qend and _qduration 2022-07-13 18:12:02 +08:00
Xiaoyu Wang 43b5ca1efe feat: support pseudo columns such as _qstart, _qend and _qduration 2022-07-13 15:13:01 +08:00
Haojun Liao c5ccdfd4e9 fix(query): set the correct resource free flag. 2022-07-09 11:06:41 +08:00
Haojun Liao 3e81daf578 fix(query): fix memory leak. 2022-07-08 17:28:37 +08:00
Xiaoyu Wang e235c9830d merge 3.0 2022-07-01 13:35:07 +08:00
Xiaoyu Wang 8a8939f99c fix: csum/diff/mavg support subquery 2022-07-01 13:31:22 +08:00
Ganlin Zhao 1dd89be98b enh(query): add last_row function without cache
TD-16927
2022-06-30 17:39:20 +08:00
Ganlin Zhao 860bf88f31 feat(query): add last_row function without cache
TD-16927
2022-06-30 17:20:04 +08:00
Xiaoyu Wang 99563fc136
Merge pull request #14376 from taosdata/feature/3.0_debug_wxy
feat: the last_row function supports all scenes
2022-06-30 11:28:53 +08:00
Xiaoyu Wang cf35174d53 feat: the last_row function supports all scenes 2022-06-30 10:23:35 +08:00
Xiaoyu Wang ae076af4f1 feat: sql system info function 'database()', 'client_version()', 'server_version()', 'server_status()', 'current_user()' and 'user()' 2022-06-29 11:41:32 +08:00
slzhou 9540d1eac9 feat: udf can be compiled outside TDengine 2022-06-28 11:54:16 +08:00
Ganlin Zhao f8bb36ce2c enh(query): add _group_key function for partion by
TD-16805
2022-06-24 20:08:07 +08:00
Xiaoyu Wang 096c292d78
Merge pull request #14179 from taosdata/feature/3.0_debug_wxy
feat: sql command 'show consumers' and 'show subscriptions'
2022-06-24 12:51:21 +08:00
Xiaoyu Wang 4fcd667bf6 feat: sql command 'show consumers' and 'show subscriptions' 2022-06-23 18:03:15 +08:00
Haojun Liao 5c1e7f3114 Merge branch '3.0' into feature/3_liaohj 2022-06-22 17:23:57 +08:00
Haojun Liao 14ddf539e0 refactor(query): do some internal refactor. 2022-06-22 17:21:04 +08:00
Xiaoyu Wang 45a806f789 feat: sql function 'last_row' 2022-06-21 19:52:26 +08:00
Ganlin Zhao 65b6c487d5 fix(query): change numOfRes from uint8_t to uint16_t to accomandate
sample function max 1000 results.

TD-16546
2022-06-20 20:41:21 +08:00
Xiaoyu Wang bac6e27c20 feat: sql command 'interp' 2022-06-19 19:39:12 +08:00
Xiaoyu Wang 22d1422b49 feat: sql command 'show table distributed' 2022-06-18 18:37:18 +08:00
Haojun Liao f2a27f5842 refactor: do some internal refactor. 2022-06-18 12:00:41 +08:00
Xiaoyu Wang fe25e45e0f
Merge pull request #13899 from taosdata/feature/3.0_wxy
feat: the unique function and tail function are rewritten as the corresponding clauses
2022-06-17 14:30:23 +08:00
Xiaoyu Wang e224d40480 feat: the unique function and tail function are rewritten as the corresponding clauses 2022-06-16 16:58:55 +08:00
Haojun Liao f2de1af904 enh(query): partition by support arithmetic expr, and do some internal refactor. 2022-06-15 23:00:31 +08:00
Haojun Liao 771065952e other: merge 3.0 2022-06-15 16:32:28 +08:00
Ganlin Zhao cd94eabc73 add stddev function translate partial/merge 2022-06-14 16:42:05 +08:00
Ganlin Zhao 4113472e89 add avg function translate partial/merge 2022-06-14 15:00:28 +08:00
Haojun Liao 531b85ce22 enh(query): add interp function. 2022-06-14 11:54:13 +08:00
Ganlin Zhao 589b30422f add last function splitting 2022-06-14 10:51:00 +08:00
Ganlin Zhao 9fa641a8b0 Merge branch '3.0' into enh/first_last_split 2022-06-14 10:50:50 +08:00
Xiaoyu Wang f080f321dd merge 3.0 2022-06-13 20:06:29 +08:00
Haojun Liao 4b9139c793
Merge branch '3.0' into feature/3_liaohj 2022-06-13 19:35:27 +08:00
Haojun Liao 49fd380a69 enh(query): add derivative function. 2022-06-13 19:22:28 +08:00
Ganlin Zhao 6d95262688 enh(query): add first/last function distributed implementation 2022-06-13 19:11:28 +08:00
Xiaoyu Wang a5ce5192f2 merge 3.0 2022-06-13 18:37:25 +08:00
Xiaoyu Wang 3954edb366 feat: avg function rewrite 2022-06-13 18:36:23 +08:00
Ganlin Zhao 4036d9714e add bottom function distribution splitting 2022-06-13 13:38:21 +08:00
Ganlin Zhao b342561535 Merge branch '3.0' into enh/top_bot_split 2022-06-11 19:25:43 +08:00
Xiaoyu Wang e17396be9c fix: some problems of parser 2022-06-11 15:44:49 +08:00
Ganlin Zhao 40f5ff71f8 add top/bot splitting 2022-06-10 18:32:34 +08:00
Haojun Liao 24cca6cbcd Merge branch '3.0' into feature/3_liaohj 2022-06-10 11:28:10 +08:00
Haojun Liao c55aae2c0c enh(query): block distribution query is supported. 2022-06-10 09:51:57 +08:00
Ganlin Zhao 134ad9fa52 Merge branch '3.0' into enh/elapsed_split 2022-06-09 20:12:57 +08:00
Ganlin Zhao 62506bac33 add elapsed function partial/merge translate 2022-06-09 19:15:09 +08:00
54liuyao 016a7b698f feat(stream): stream state window support top and bottom 2022-06-09 17:45:40 +08:00
Ganlin Zhao 23c0bdf052 enh(query): add hll function distributed splitting 2022-06-09 10:57:32 +08:00
Ganlin Zhao db9b56777f
Merge pull request #13616 from taosdata/enh/histogram_split
enh(query): add histogram function distributed splitting
2022-06-09 10:35:27 +08:00
dapan1121 d4c7154cde Merge branch '3.0' into feature/qnode 2022-06-09 09:10:37 +08:00
dapan1121 1a078d5d56 fix in issue 2022-06-08 18:36:46 +08:00
Ganlin Zhao d49f1dbc15 enh(query): add histogram function distributed splitting
TD-16321
2022-06-08 17:38:51 +08:00
Ganlin Zhao ad895c243d enh(query): add spread function distributed splitting 2022-06-08 16:34:23 +08:00
Ganlin Zhao 5d543449c9 enh(query): add distributed splitting of aggregate function
TD-16321
2022-06-07 11:23:19 +08:00
Liu Jicong 77fe6a4ef7
Merge branch '3.0' into feature/3_liaohj 2022-06-02 15:05:49 +08:00
Xiaoyu Wang edd0295a00 feat: interval distributed split 2022-06-02 10:45:27 +08:00
Xiaoyu Wang 4432fa930f feat: parser adapts asynchronous interface 2022-05-28 19:56:06 +08:00
54liuyao 0778bf8857 stream session operator 2022-05-25 09:05:03 +08:00
Xiaoyu Wang 8da52cbb04 feat: tag index filter plan 2022-05-23 19:50:08 +08:00
Haojun Liao a7feca23fe other: merge 3.0 2022-05-30 23:32:00 +08:00
Haojun Liao 70927458e5 refactor(query): do some internal refactor. 2022-05-30 20:10:30 +08:00
Haojun Liao 1652cd0ec2 enh(query): enable twa function in select clause. 2022-05-29 12:35:11 +08:00
Xiaoyu Wang 29bdba7298 fix: some problems of parser and planner 2022-05-19 14:26:10 +08:00
Haojun Liao a918f19329 Merge branch '3.0' into feature/3.0_liaohj 2022-05-17 22:47:52 +08:00
Haojun Liao aefa9bd891 refactor: do some internal refactor. 2022-05-17 16:53:55 +08:00
Ganlin Zhao 766b1a3b46
Merge pull request #12575 from taosdata/feature/3.0_glzhao
feat(query): add HYPERLOGLOG function
2022-05-17 13:45:14 +08:00
slzhou d668ee7b91 fix: aggregate memory leaking 2022-05-17 12:03:37 +08:00
Ganlin Zhao 1eb59a2fed feat(query): add hll function 2022-05-17 11:36:12 +08:00
Ganlin Zhao 67e93ef90c Revert "feat(query): add HYPERLOGLOG function"
This reverts commit 267ed293d7.
2022-05-17 10:33:58 +08:00
Ganlin Zhao 267ed293d7 feat(query): add HYPERLOGLOG function 2022-05-17 10:33:19 +08:00
slzhou 8ce04a94f9 fix: change function name for tearing down udf handles 2022-05-16 09:06:08 +08:00
slzhou 5b35fcacd6 fix: teardown udf functions handles 2022-05-16 07:47:56 +08:00
slzhou 911cd1fe66 fix: reuse existing udf handles and teardown the handle later 2022-05-14 22:51:13 +08:00
Haojun Liao 86031c1985 fix(query): add the repeat scan flag check during aggregate executor. 2022-05-13 12:17:09 +08:00
Haojun Liao ec808a75c1 Merge branch 'feature/3.0_liaohj' of github.com:taosdata/tdengine into feature/3.0_liaohj 2022-05-13 00:38:21 +08:00
Haojun Liao aae019d18a fix(query): close read fd when finishing scanning data files. 2022-05-13 00:32:02 +08:00
Haojun Liao bc64bdc179 Merge branch '3.0' into feature/3.0_liaohj 2022-05-12 23:15:35 +08:00
Haojun Liao a41f6a3479 fix(query): fix the bug that special pseudo column tbname, along with other normal columns in select clause, cause taosd crash. 2022-05-12 17:33:36 +08:00
slzhou@taodata.com c95d3cdb36 feature(udf):error follows tsdb_code standard 2022-05-12 15:43:32 +08:00
slzhou@taodata.com d7bd682237 column has member hasNull 2022-05-12 14:42:57 +08:00
Ganlin Zhao 57cd462000 Merge branch '3.0' into feature/3.0_glzhao 2022-05-10 20:44:57 +08:00
Ganlin Zhao 85adb8611c feat(query): add state_count function 2022-05-10 20:32:03 +08:00
Ganlin Zhao 15055fe9e3
Merge pull request #12281 from taosdata/feature/3.0_glzhao
feat(query): add leastsquares function
2022-05-10 10:13:51 +08:00
Shengliang Guan fe4c1eed05
Merge pull request #12283 from taosdata/feature/3.0_wxy
fix: problem of parser and planner
2022-05-10 09:35:32 +08:00
slzhou 623a71d34c feature(udf):move start/stop udfd out of dnode management preparation 2022-05-09 21:39:41 +08:00
Xiaoyu Wang 4c914c2960 fix: problem of parser and planner 2022-05-09 20:20:05 +08:00
Ganlin Zhao 79570c93a3 feat(query): add leastsquares function 2022-05-09 19:37:16 +08:00
slzhou 4cc16bec00 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-07 20:00:56 +08:00
slzhou f8dd3a1341 feature(udf):refactor code and fix bugs 2022-05-07 19:35:44 +08:00
54liuyao 599ea89a53 stream scan 2022-05-07 18:10:45 +08:00
slzhou c9ee1b0dee fix: core dump when pass mulitiple columns from taosd to udfd 2022-05-06 17:41:49 +08:00
afwerar 402acb60c6 fix(os): fix win max func error. 2022-05-06 09:49:37 +08:00
shenglian zhou 8b9e94a038 scalar udf memory by itself 2022-05-05 19:03:05 +08:00
shenglian zhou c6ef0b9b3a Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-05 14:57:47 +08:00
shenglian zhou 162cf572eb modify udf comments 2022-05-03 17:51:21 +08:00
Xiaoyu Wang 3b4f9b91cf feat: sql commadn 'select max(c1), c2 from t2' 2022-05-01 08:38:17 +08:00
Haojun Liao 45e8eeb9f8
Merge pull request #12038 from taosdata/feature/3.0_liaohj
refactor(query): remove redundant attributes in some structs.
2022-04-29 10:41:15 +08:00
Haojun Liao 2a696d2790 fix(query): add one more attribute in SSDataBlock. 2022-04-29 08:49:31 +08:00
Ganlin Zhao d8f8e075e1 feat(query): add spread function
TD-14297
2022-04-28 21:27:46 +08:00
shenglian zhou 00509d0edf udaf integrate into function framework 2022-04-28 14:43:54 +08:00
shenglian zhou ba5123ad24 agg proc func parameter change 2022-04-28 14:07:24 +08:00
shenglian zhou 0119054b0b aggregate function call from udfd 2022-04-28 11:12:45 +08:00
shenglian zhou 35711ee710 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-04-27 07:31:36 +08:00
shenglian zhou f183c5606c before modify udfd process request and runudf.c 2022-04-27 07:27:58 +08:00