Commit graph

433 commits

Author SHA1 Message Date
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
slzhou
e9e6b1fa1f sync home office 2022-04-26 18:28:30 +08:00
Xiaoyu Wang
cdee4d8e07 merge 3.0 2022-04-26 18:27:27 +08:00
Xiaoyu Wang
ac754dce90 fix: some problems of tag query and sma 2022-04-26 18:15:06 +08:00
slzhou
22a97ca07e Merge branch '3.0_udfd' of github.com:taosdata/TDengine into feature/udf 2022-04-26 17:31:22 +08:00
slzhou
26eaaf9070 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-26 17:00:15 +08:00
slzhou
41a213a904 scalar api change 2022-04-26 16:57:08 +08:00
slzhou
21a28306e0 merge 3.0 2022-04-26 16:09:13 +08:00
Haojun Liao
842b75cd9d Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-26 14:10:45 +08:00
Haojun Liao
9b40ec72d6 fix(query): handle the optimized order by in tablescan operator. 2022-04-26 13:09:29 +08:00
Xiaoyu Wang
ba509423fc fix: some problems of udf and 'create table' 2022-04-25 20:35:05 +08:00
Xiaoyu Wang
14e9fa355c fix: some problems of udf and 'create table' 2022-04-25 17:57:14 +08:00
shenglian zhou
73a0ad7414 udaf integration first step 2022-04-25 15:44:40 +08:00
shenglian-zhou
7468d948f5
Merge pull request #11819 from taosdata/3.0_udfd
udfc open/close in vm init/cleanup
2022-04-25 11:26:25 +08:00
slzhou
e29141a4ad udfc open/close in vm init/cleanup 2022-04-25 09:30:20 +08:00
Haojun Liao
4b36763429 refactor(query): do some internal refactor. 2022-04-22 22:43:07 +08:00
Haojun Liao
e28b75b8d4 refactor(query): do some internal refactor. 2022-04-22 15:07:20 +08:00
Haojun Liao
fc799fa115 other: merge 3.0 2022-04-21 17:51:00 +08:00
Haojun Liao
9a038322b6 refactor(query): do some internal refactor. 2022-04-21 17:44:08 +08:00
dapan1121
36a8382b8e feature/qnode 2022-04-21 15:33:07 +08:00
Haojun Liao
e14142d114 refactor(query): do some internal refactor. 2022-04-21 13:57:32 +08:00
dapan1121
a284d8fc4a feature/qnode 2022-04-21 13:37:18 +08:00
Xiaoyu Wang
311b407260
Merge pull request #11678 from taosdata/feature/3.0_wxy
feat: sql command 'create function'
2022-04-20 18:33:23 +08:00
Xiaoyu Wang
6f377189d0 feat: sql command 'create function' 2022-04-20 17:43:02 +08:00
Haojun Liao
343988beeb refactor: do some internal refactor. 2022-04-20 14:59:06 +08:00
Xiaoyu Wang
e2164bf8cb feat: CREATE STREAM statement implement, and syntax of JSON data type implement. 2022-04-15 19:35:46 +08:00
Xiaoyu Wang
ba1f3f7815 feat: CREATE STREAM statement implement, and syntax of JSON data type implement. 2022-04-15 18:30:01 +08:00
Haojun Liao
5029cd67b2 ehn(query): add the file data block load optimization check. 2022-04-15 18:06:49 +08:00
Haojun Liao
684db8eba8 refactor(query): refactor some variable name and macro definitions. 2022-04-15 14:01:43 +08:00
Xiaoyu Wang
8118a20649 enh(query): increase the validity check of function parameters 2022-04-14 15:49:57 +08:00
Ganlin Zhao
c0b3607756 feat(query): add to_unixtimestamp function
TD-14243
2022-04-13 11:41:02 +08:00
Xiaoyu Wang
93d379638c enh(query):optimize scanning through SQL functions 2022-04-12 13:10:47 +08:00
Haojun Liao
50f0ab05ff [td-14493] support distinct. 2022-04-06 23:00:32 +08:00
Haojun Liao
7553344d9a [td-14493] refactor. 2022-04-06 20:07:04 +08:00
Haojun Liao
d4d210af5b [td-14493] support distinct. 2022-04-06 19:46:38 +08:00
Haojun Liao
78b1bf27b6 [td-14393] refactor. 2022-04-06 10:09:14 +08:00
Haojun Liao
6eb3f15cd0 [td-14393] merge 3.0. 2022-04-04 15:13:47 +08:00
Haojun Liao
f7ba0c31d8 [td-14393] refactor. 2022-04-04 14:54:39 +08:00
Xiaoyu Wang
aaf35118f6
Merge pull request #11222 from taosdata/feature/3.0_wxy
integrate constant calculate
2022-04-02 20:35:10 +08:00
Xiaoyu Wang
e41043074b integrate constant calculate 2022-04-02 08:20:26 -04:00
Ganlin Zhao
f74771cd3f
Merge pull request #11221 from taosdata/feature/3.0_glzhao
[TD-14241]: add string functions
2022-04-02 18:50:11 +08:00
Haojun Liao
cf25aca809 [td-13039] refactor. 2022-04-02 15:08:48 +08:00
Ganlin Zhao
70b0139017 Merge branch '3.0' into feature/3.0_glzhao 2022-04-02 13:57:21 +08:00
Haojun Liao
9a5123c64f [td-13039] add times for session window 2022-04-02 13:32:26 +08:00
Ganlin Zhao
87fefa9e15 [TD-14241]: add string functions 2022-03-30 14:03:54 +08:00
Haojun Liao
39036ea512 [td-13039] support pseudo column in interval query. 2022-03-30 13:41:15 +08:00
Xiaoyu Wang
420ccc949c
Merge pull request #11069 from taosdata/feature/3.0_wxy
sort bugfix, and pseudo column implement
2022-03-28 19:38:55 +08:00
Xiaoyu Wang
a0ef66528c sort bugfix, and pseudo column implement 2022-03-28 07:26:06 -04:00
Haojun Liao
0daa0de073 [td-13039] support scalar function. 2022-03-27 22:43:07 +08:00
Haojun Liao
b9c33dade2 [td-13039] merge 3.0. 2022-03-27 15:30:46 +08:00
Haojun Liao
df7c801ef7 [td-13039] refactor. 2022-03-26 22:17:26 +08:00
Haojun Liao
23db83f5f4 [td-13039] support arithmetic query. 2022-03-26 22:13:14 +08:00
Haojun Liao
400989c040 [td-13039] refactor scalar function. 2022-03-26 13:43:02 +08:00
Ganlin Zhao
aaa2d2094a Merge branch '3.0' into 3.0_glzhao_math_func 2022-03-26 10:24:33 +08:00
Ganlin Zhao
303a853c0c [TD-14240]<feature>: add math functions 2022-03-25 20:09:26 +08:00
Haojun Liao
503300a2bd [td-13039] update test. 2022-03-24 14:21:14 +08:00
Xiaoyu Wang
9ca80596e4 merge 3.0 2022-03-21 02:00:30 -04:00
Haojun Liao
0271413aff [td-13039] refactor. 2022-03-12 22:59:12 +08:00
Haojun Liao
309076de1f [td-13039] add first/last query. 2022-03-11 14:11:34 +08:00
Xiaoyu Wang
84f60fcc0a TD-13747 deal memory leaks 2022-03-10 06:32:39 -05:00
Haojun Liao
8345a5429b [td-13039] add min/max/systable-scanner. 2022-03-10 11:12:44 +08:00
Haojun Liao
459b0ef442 [td-13039] refactor. 2022-03-09 10:22:53 +08:00
dapan1121
e0faac42c4 Merge remote-tracking branch 'origin/3.0' into feature/qnode 2022-03-01 09:50:44 +08:00
Shengliang Guan
5891779fe1 common 2022-02-28 17:55:07 +08:00
dapan
2d58e1fed7 feature/qnode 2022-02-27 17:54:47 +08:00
dapan1121
7129ba9cbd feature/qnode 2022-02-25 19:15:23 +08:00
Haojun Liao
84fedfba09 Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-02-24 17:56:58 +08:00
dapan1121
93baf85a4f feature/qnode 2022-02-22 19:42:35 +08:00
Haojun Liao
b95e95dc0a [td-13039] fix bug in sorted merge operator. 2022-02-22 13:12:03 +08:00
dapan1121
8f199e0eb8 feature/qnode 2022-02-17 19:30:43 +08:00
dapan1121
76d5298ba1 feature/qnode 2022-02-17 16:08:59 +08:00
dapan1121
bffdb7a821 Merge remote-tracking branch 'origin/3.0' into feature/qnode 2022-02-17 09:36:40 +08:00
dapan1121
75ede63c8a feature/qnode 2022-02-17 09:34:55 +08:00
Xiaoyu Wang
e070ad2b77 TD-13495 planner refactoring 2022-02-11 09:19:31 -05:00
Xiaoyu Wang
cdd60902d7 TD-13338 SELECT statement translate code 2022-02-10 05:43:14 -05:00
Xiaoyu Wang
0ef0e1655b TD-13338 SELECT statement translate code 2022-02-08 20:03:32 -05:00
Haojun Liao
afd1ce63db [td-11818] Refactor API. 2022-01-28 10:44:02 +08:00
Haojun Liao
09ba6a611d [td-11818] refactor. 2022-01-21 11:19:24 +08:00
Haojun Liao
bdf03d8fa9 [td-11818] refactor. 2022-01-20 17:10:28 +08:00
Haojun Liao
b45da2b208 [td-11818] refactor. 2022-01-20 16:02:09 +08:00
Haojun Liao
1a1cd55111 [td-11818] refactor. 2022-01-20 13:52:46 +08:00
Xiaoyu Wang
a0a61fa91d TD-13120 SELECT statement data structure definition 2022-01-19 21:51:23 -05:00
Haojun Liao
b271fee301 [td-11818] add log. 2022-01-08 22:59:24 +08:00
Haojun Liao
1444f0b466 [td-11818] refactor 2022-01-08 16:28:44 +08:00
Haojun Liao
bfd23c61d8 [td-10564] 1. refactor and fix bug in order by validation. 2. Support the compatible model of ver. 2.0 2021-11-22 18:57:00 +08:00
Haojun Liao
a0d3fa46c2 [td-10564] refactor code and fix bug in parse sql. 2021-11-10 23:20:01 +08:00
Haojun Liao
7c9d760026 [td-10564] Fix bug in create logic plan. 2021-11-08 23:24:11 +08:00
Haojun Liao
b4bba7ee0d [td-10564] Refactor the sql function parse procedure. 2021-11-08 10:32:06 +08:00
Haojun Liao
f80294fc3d [td-10564] Support two columns in the aggregate function. 2021-11-07 15:49:30 +08:00
Haojun Liao
013f8fed42 [td-10564] 1. Enable and then refactor the parse the nested function in select clause. 2. Add some scalar string function in function module. 3. Add more test cases. 2021-11-05 10:35:50 +08:00
Haojun Liao
55f3ac1701 [td-10564] refactor and add test cases. 2021-11-04 13:24:19 +08:00
Haojun Liao
89e324c899 [td-10564]fix compiler error. 2021-11-02 15:08:00 +08:00
Haojun Liao
f69a885da5 [td-10564]Add implementation in executor. 2021-11-02 13:37:31 +08:00
Haojun Liao
c7a7cf8730 [td-10564] add test planner. 2021-10-29 15:21:37 +08:00
Haojun Liao
505b95a476 [td-10564]add invalid query check. 2021-10-28 18:16:37 +08:00
Haojun Liao
aa06470943 [td-10564] fix memory leak in unit test and refactor some codes. 2021-10-28 16:16:42 +08:00
Haojun Liao
562dfa9eb0 [td-10564]Add implementation for planner. 2021-10-27 17:23:58 +08:00
Haojun Liao
3f84c37db3 [td-10564] Add more implementation of parser. 2021-10-23 12:51:29 +08:00
Haojun Liao
24090f0191 [td-10564] Fix compiler error. 2021-10-21 11:20:07 +08:00
Haojun Liao
b7917aa43b [td-10564] Add codes for query parsing. 2021-10-21 11:06:52 +08:00