Commit Graph

691 Commits

Author SHA1 Message Date
Shengliang Guan 27c1687a05 refactor: adjust some logs 2022-06-02 14:30:26 +08:00
Xiaoyu Wang cd7d3c59a2
Merge pull request #13403 from taosdata/feature/3.0_distributed_split
feat: interval distributed split
2022-06-02 11:07:42 +08:00
Xiaoyu Wang edd0295a00 feat: interval distributed split 2022-06-02 10:45:27 +08:00
Ganlin Zhao adc1030197
Merge pull request #13393 from taosdata/fix/TD-16070
feat(query): add log function support natural logarithm
2022-06-01 22:38:15 +08:00
Ganlin Zhao 2c0f42c2be
Merge pull request #13390 from taosdata/fix/TD-16070
fix(query): concat/concat_ws function null constant handling and param check
2022-06-01 21:54:51 +08:00
Ganlin Zhao 98b40a59a0 feat(query): add log function support natural logrithm
TD-15182
2022-06-01 13:52:01 +00:00
Ganlin Zhao f566146cc9 fix(query): fix concat_ws separator param can only be constant string
TD-16070
2022-06-01 12:50:25 +00:00
Ganlin Zhao a00ea8e48d enh(query): to_iso8601 param handing 2022-06-01 10:27:11 +00:00
Ganlin Zhao 3d6147fd9c fix(query): fix to_iso8601 timezone param check 2022-06-01 14:58:10 +08:00
Ganlin Zhao a9787ea446 enh(query): to_iso8601 add customized timzone format
TD-16152
2022-06-01 12:16:06 +08:00
Ganlin Zhao 4ba4f53912 fix(query): fix leastsquares function param type error
TD-16187
2022-05-31 09:49:30 -04:00
Ganlin Zhao 34d8d05449 fix(query): fix leastsquares c0+null and also group by output has empty
result

TD-16136
2022-05-31 09:31:30 -04:00
Ganlin Zhao 11e55389b1 fix: fix typo 2022-05-31 06:54:27 -04:00
Ganlin Zhao 93a3c27168 fix(query): restrict stateduration function time unit parameter greater
than db precision.

TD-16171
2022-05-31 06:44:44 -04:00
Ganlin Zhao 5344ab10f2 fix((query): add statecount/stateduration parameter check
TD-16160
2022-05-31 06:26:46 -04:00
Haojun Liao cca327190d fix(query): restore some remove attributes. 2022-05-31 17:46:35 +08:00
Haojun Liao 6007b8ad11 Merge branch 'feature/3_liaohj' of github.com:taosdata/tdengine into feature/3_liaohj 2022-05-31 12:12:59 +08:00
Haojun Liao c06316537e enh(query): the results of count and hyperloglog is configurable. 2022-05-31 15:04:52 +08:00
Haojun Liao 15f5713bda Merge remote-tracking branch 'origin/3.0' into feature/3_liaohj 2022-05-31 11:50:04 +08:00
Xiaoyu Wang 3e5ab6b54c feat: add physical plannode of indefinite rows func 2022-05-31 11:29:10 +08:00
Ganlin Zhao fa0d370828
Merge pull request #13241 from taosdata/TD-16122/fix
fix(query): fix unique/last/first number of param check
2022-05-31 00:03:12 +08:00
Haojun Liao a7feca23fe other: merge 3.0 2022-05-30 23:32:00 +08:00
Ganlin Zhao c630f42653 fix(query): fix unique function number of param check
TD-16134
2022-05-30 17:08:47 +02:00
Haojun Liao 70927458e5 refactor(query): do some internal refactor. 2022-05-30 20:10:30 +08:00
Ganlin Zhao d6998dc1a8 fix(query): fix unique/last/first number of param check
TD-16134
2022-05-30 14:57:29 +03:00
Ganlin Zhao 0a98735a08
Merge pull request #13235 from taosdata/TD-16122/fix
fix(query): fix multiple aggregate function issues
2022-05-30 17:48:52 +08:00
Ganlin Zhao 0b0042ff2a fix(query): restrict statecount/stateduration first param to be column
only

TD-16128
2022-05-30 17:17:00 +08:00
Ganlin Zhao a27d05f6e1 fix(query): change state_count/state_duration function name to
statecount/stateduration

TD-16110
2022-05-30 17:07:50 +08:00
Ganlin Zhao edf66a3572 fix(query): fix tail result incorrect when column containing null value
TD-16122
2022-05-30 16:56:43 +08:00
Haojun Liao 1652cd0ec2 enh(query): enable twa function in select clause. 2022-05-29 12:35:11 +08:00
Ganlin Zhao 2512b98c5a
Merge pull request #13165 from taosdata/fix/TD-16098
fix(query): fix diff function bool type crash
2022-05-28 21:24:07 +08:00
Xiaoyu Wang 71173081d3 Merge remote-tracking branch 'origin/3.0' into feature/3.0_async 2022-05-28 20:16:36 +08:00
Xiaoyu Wang 4432fa930f feat: parser adapts asynchronous interface 2022-05-28 19:56:06 +08:00
Ganlin Zhao 94109a3173 fix(query): fix diff function bool type crash
TD-16098
2022-05-28 18:55:07 +08:00
Ganlin Zhao 9c3c2f4b65
Merge pull request #13154 from taosdata/fix/TD-16074
fix(query): fix apercentile parameter check
2022-05-28 15:56:30 +08:00
Ganlin Zhao 75f2d3952a fix(query): apercentile algo string should not include var header 2022-05-28 14:47:13 +08:00
Ganlin Zhao b350d0025d
Merge pull request #13144 from taosdata/fix/TD-15892
fix(query): restrict diff function ignore_negative types to integer
2022-05-28 14:42:52 +08:00
Ganlin Zhao 693488a511 fix(query): fix apercentile parameter check
TD-16074
2022-05-28 14:39:10 +08:00
Ganlin Zhao 26ceeac789 fix(query): restrict diff function ignore_negative types to integer
TD-16066
2022-05-28 11:38:09 +08:00
Ganlin Zhao 06a5408190
Merge pull request #13113 from taosdata/fix/TD-15892
fix(query): fix avg used in group by NULL value calculated as nan
2022-05-27 23:32:37 +08:00
Ganlin Zhao d11303916b fix(query): fix avg used in group by NULL value calculated as nan
TD-15892
2022-05-27 22:59:17 +08:00
Ganlin Zhao 3b9e21558d
Merge pull request #13102 from taosdata/fix/TD-16034
fix(query): fix diff function result type to avoid overflow
2022-05-27 22:33:15 +08:00
Ganlin Zhao 266da48c5a fix(query): fix diff function result type to avoid overflow
TD-16068
2022-05-27 19:43:13 +08:00
Ganlin Zhao 17748c0cb7
Merge pull request #13097 from taosdata/fix/TD-16034
fix(query): fix diff function param check
2022-05-27 19:05:43 +08:00
Ganlin Zhao 1f6c6b119d fix(query): fix csum function more than 1 param crash
TD-16065
2022-05-27 18:40:41 +08:00
Ganlin Zhao 25eb6dbeef fix(query): diff function first param can only be column
TD-16067
2022-05-27 18:27:24 +08:00
Ganlin Zhao 0b9c9834f5 fix(query): diff function ignore_negative param can only be 0 or 1
TD-16066
2022-05-27 18:11:03 +08:00
Ganlin Zhao ecb3d055da
Merge pull request #13084 from taosdata/fix/TD-16034
fix(queyr): fix tail function parameter restriction
2022-05-27 17:44:31 +08:00
Ganlin Zhao dc17e5553c fix(query): eliminate diff function result nan/inf in case of overflow
TD-16053
2022-05-27 15:48:12 +08:00
Ganlin Zhao de6f6a1e35 fix(query): eliminate csum/mavg result nan/inf in case of overflow
TD-16053
2022-05-27 15:29:33 +08:00
Ganlin Zhao 8035d02d92 fix(queyr): fix tail function parameter restriction
TD-16035
2022-05-27 15:07:12 +08:00
Ganlin Zhao c03ea81bcf
Merge pull request #13076 from taosdata/fix/TD-16034
fix(query): fix unique function NULL value not hashable handling
2022-05-27 13:56:27 +08:00
Ganlin Zhao 1d57820693 fix(query): fix unique function NULL value not hashable handling
TD-16034
2022-05-27 12:09:48 +08:00
Ganlin Zhao f4272b5ae4
Merge pull request #13033 from taosdata/fix/TD-15957
fix(query): fix first(*) result incorrect for all NULL entry tables
2022-05-26 22:13:29 +08:00
Ganlin Zhao 45bbfbfdf7
Merge pull request #13029 from taosdata/fix/TD-16018
fix(query): fix elapsed function time_unit cannot be smaller than db precision
2022-05-26 21:42:20 +08:00
Ganlin Zhao 2ed001ce68
Merge pull request #13010 from taosdata/fix/TD-15923
fix(query): fix avg/sum function result overflown output inf/nan
2022-05-26 21:17:42 +08:00
Haojun Liao 593c79d512 fix(query): add finalize for first function. 2022-05-26 18:15:20 +08:00
Ganlin Zhao b7729cf6e3 fix(query): fix first(*) result incorrect for all NULL entry tables;
TD-15957
2022-05-26 17:58:46 +08:00
Ganlin Zhao f08365e2b0 fix(query): fix cast function error msg
TD-16016
2022-05-26 17:30:00 +08:00
Ganlin Zhao ed6eae4d58 fix(query): fix elapsed function time_unit cannot be smaller than db
precision

TD-16018
2022-05-26 17:13:13 +08:00
Ganlin Zhao 998980079f fix(query): fix sum/avg function floating type overflow 2022-05-26 16:23:29 +08:00
Ganlin Zhao 067731b763 Merge branch '3.0' into feature/3.0_glzhao 2022-05-26 12:22:56 +08:00
Ganlin Zhao 72d9b07894 fix(query): fix avg/sum function result overflown output inf/nan
TD-15923
2022-05-26 11:36:07 +08:00
Haojun Liao a02bf52295
Merge pull request #12989 from taosdata/feature/3_liaohj
fix(query): check for invalid parameters of substr function.
2022-05-26 11:03:50 +08:00
Ganlin Zhao 0f27d39156
Merge pull request #12971 from taosdata/fix/TD-15977
fix(query): restrict top/bottom function column type and first param must be column
2022-05-26 09:51:42 +08:00
Haojun Liao e5bb56752a fix(query): check for invalid parameters of substr function. 2022-05-25 23:09:03 +08:00
Xiaoyu Wang 6d3f066540 feat: sql command 'drop cgroup' 2022-05-25 21:23:13 +08:00
Xiaoyu Wang 070f60409b feat: sql command 'drop cgroup' 2022-05-25 21:20:11 +08:00
Ganlin Zhao 1a784b3c01 fix(query): restrict top/bottom function column type and first param
must be column

TD-15977
2022-05-25 14:44:27 +08:00
Ganlin Zhao def5680ee6
Merge pull request #12968 from taosdata/enh/TD-15976
enh(query): reserve aggregate function constant param as value node in client.
2022-05-25 14:20:02 +08:00
Ganlin Zhao 220253e604 enh(query): reserve aggregate function constant param as value node in
client.

TD-15976
2022-05-25 13:30:26 +08:00
Ganlin Zhao 635711669f Revert "enh(query): reserve aggregate function constant param as value node in"
This reverts commit e0224da580.
2022-05-25 11:01:46 +08:00
Ganlin Zhao e0224da580 enh(query): reserve aggregate function constant param as value node in
client.

TD-15976
2022-05-25 10:59:27 +08:00
54liuyao 0778bf8857 stream session operator 2022-05-25 09:05:03 +08:00
Ganlin Zhao 424ff4a685 Merge branch '3.0' into feature/3.0_glzhao 2022-05-24 10:44:02 +08:00
Ganlin Zhao 21e3c0ce78 fix: fix windows compilation error 2022-05-24 10:41:11 +08:00
Ganlin Zhao 011bd32330 feat(query): add apercentile function 2022-05-23 22:48:15 +08:00
shenglian-zhou 6f302c2e4a
Merge pull request #12875 from taosdata/feature/udf
fix: udfd can not stop when taosd restarts very quickly
2022-05-23 20:44:51 +08:00
Xiaoyu Wang f95639227e
Merge pull request #12874 from taosdata/feature/3.0_wxy
feat: tag index filter plan
2022-05-23 20:29:25 +08:00
slzhou 757e4f31a1 fix: udfd can not stop when taosd restarts very quickly 2022-05-23 20:20:27 +08:00
Xiaoyu Wang dec850677b Merge remote-tracking branch 'origin/3.0' into feature/3.0_wxy 2022-05-23 19:50:33 +08:00
Xiaoyu Wang 8da52cbb04 feat: tag index filter plan 2022-05-23 19:50:08 +08:00
dapan1121 0c22c548d8 fix constant reserve issue 2022-05-23 19:06:22 +08:00
dapan1121 5fc9aa5ec1 Merge remote-tracking branch 'origin/3.0' into feature/3.0_constant 2022-05-23 16:17:59 +08:00
afwerar 93a0c69edc fix(os): win ctest error 2022-05-23 13:42:56 +08:00
dapan1121 9d6475fa09 Merge remote-tracking branch 'origin/3.0' into feature/async 2022-05-23 09:26:48 +08:00
shenglian-zhou cba190ccc3
Merge branch '3.0' into feature/udf 2022-05-22 21:40:12 +08:00
shenglian zhou 1e8a287662 feat: udf code refactoring 2022-05-22 16:37:06 +08:00
shenglian zhou e56a650877 udf: refactor code 2022-05-22 16:31:37 +08:00
shenglian zhou 7976b6abfd feat:udf refactoring 2022-05-22 16:29:41 +08:00
shenglian zhou 712217ab02 enhance: udf code refactoring 2022-05-22 16:08:39 +08:00
shenglian zhou 317db70052 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-22 16:04:21 +08:00
shenglian zhou 548838d9c3 enhance: udf code refactoring 2022-05-22 16:03:46 +08:00
afwerar 5acf419019 fix(os): win not close file ctest error 2022-05-21 23:47:39 +08:00
Xiaoyu Wang 89562acb01 feat: the length of binary/nchar type value is the same as that of column 2022-05-21 18:09:31 +08:00
Haojun Liao 25e2a9dd72 refactor: do some internal refactor, and set the correct intermediate buffer size for average function. 2022-05-20 23:58:34 +08:00
Ganlin Zhao 464a79ac50
Merge pull request #12747 from taosdata/feature/3.0_glzhao
fix(query): change unique function type to non-standard sql function
2022-05-20 15:16:52 +08:00
Ganlin Zhao 98092217ee fix: fix windows compilation error 2022-05-20 14:58:04 +08:00
Ganlin Zhao 3d34f7850e fix(query): change unique function type to non-standard sql function 2022-05-20 13:59:20 +08:00
Ganlin Zhao 9ca54b9478
Merge pull request #12723 from taosdata/feature/3.0_glzhao
feat(query): add unique function
2022-05-20 10:18:36 +08:00
dapan1121 7baf8eab29 catalog async api 2022-05-20 09:53:30 +08:00
Ganlin Zhao bf4826d9a8 feat(query): add unique function 2022-05-19 22:42:30 +08:00
Yihao Deng 040292cb80
Merge pull request #12718 from taosdata/enh/deleteDupCode
Enh/delete dup code
2022-05-19 22:12:46 +08:00
yihaoDeng 76b9a5acee fix: avoid invalid read/write 2022-05-19 21:56:39 +08:00
shenglian-zhou 5049ea17e6
Merge pull request #12717 from taosdata/feature/udf
fix: udf2 reuse old state when new input is all null
2022-05-19 21:11:38 +08:00
slzhou b5a419c25a Merge branch 'feature/udf' of github.com:taosdata/TDengine into feature/udf 2022-05-19 20:56:40 +08:00
slzhou c0fc53a9a8 fix: udf2 reuse old state when new input is null 2022-05-19 20:54:30 +08:00
shenglian-zhou 6649018519
Merge pull request #12707 from taosdata/feature/udf
fix: set hasResult when old state has result
2022-05-19 18:11:40 +08:00
slzhou 5a3f6b11e7 fix: set hasResult when old state has result 2022-05-19 17:48:34 +08:00
Haojun Liao f636806c2a other: merge 3.0 2022-05-19 17:07:01 +08:00
Haojun Liao e0b9da9c3d refactor: do some internal refactor. 2022-05-19 16:49:43 +08:00
Xiaoyu Wang 29bdba7298 fix: some problems of parser and planner 2022-05-19 14:26:10 +08:00
Ganlin Zhao fba964778b
Merge pull request #12651 from taosdata/feature/3.0_glzhao
enh(query): support sum(NULL), max(NULL), min(NULL), count(NULL)
2022-05-18 19:26:17 +08:00
Ganlin Zhao 8daaea58de feat(query): fix ci 2022-05-18 18:51:40 +08:00
slzhou 36dcc70f0d fix: improve udf function misuse stability 2022-05-18 18:21:32 +08:00
Ganlin Zhao 98a6792b99 Merge branch '3.0' into feature/3.0_glzhao 2022-05-18 16:54:19 +08:00
Ganlin Zhao e948d5a248 enh(query): support avg(NULL), stddev(NULL) 2022-05-18 16:35:13 +08:00
Ganlin Zhao a52e0027cf enh(query): support count(NULL) = 0 2022-05-18 16:14:57 +08:00
Ganlin Zhao 26c618e5ad enh(query): support sum(NULL), max(NULL), min(NULL) 2022-05-18 16:03:59 +08:00
Ganlin Zhao 36370a2339
Merge pull request #12612 from taosdata/feature/3.0_glzhao
fix(query): fix elapsed parameter number
2022-05-18 14:34:53 +08:00
shenglian-zhou 7655f51ff8
Merge pull request #12631 from taosdata/feature/udf
fix: udfc checks output type and output bytes when executing scalar f…
2022-05-18 12:43:01 +08:00
slzhou 950835e1fc fix: set correct udf output type when retrieve from mnode 2022-05-18 12:16:28 +08:00
Haojun Liao eeaea6a6dc
Merge pull request #12629 from taosdata/feature/3.0_liaohj
fix(query): add parameters check for top/bottom functoin.
2022-05-18 12:11:08 +08:00
slzhou 00c11b01fe fix: udfc checks output type and output bytes when executing scalar function 2022-05-18 11:43:03 +08:00
Haojun Liao 325959bd27 fix(query): add parameters check for top/bottom functoin. 2022-05-18 11:01:39 +08:00
shenglian-zhou ea3e48827f
Merge pull request #12627 from taosdata/feature/udf
fix: release udf func handle when udf agg failure
2022-05-18 10:44:47 +08:00
slzhou d5c30f5ea5 fix: release udf func handle when udf agg failure 2022-05-18 10:29:32 +08:00
Haojun Liao 52f6a66ba5 fix(query): fix some syntax error. 2022-05-17 22:58:17 +08:00
Haojun Liao a918f19329 Merge branch '3.0' into feature/3.0_liaohj 2022-05-17 22:47:52 +08:00
shenglian-zhou 81ea237b4f
Merge pull request #12605 from taosdata/feature/udf
fix: trigger ci test
2022-05-17 22:28:41 +08:00
Ganlin Zhao 485a1aedd5 fix(query): fix elapsed parameter number 2022-05-17 22:27:46 +08:00
slzhou b4e23c34a4 feat: udfc check udf function interbuf size and result size 2022-05-17 22:10:51 +08:00
Ganlin Zhao 2f128fa3c9
Merge pull request #12607 from taosdata/feature/3.0_glzhao
feat(query): add elapsed function
2022-05-17 21:37:11 +08:00
Ganlin Zhao 1b0b410f98 feat(query): add elapsed function 2022-05-17 21:22:21 +08:00
Shengliang Guan 88094cfec7 Merge remote-tracking branch 'origin/3.0' into fix/mnode 2022-05-17 20:56:54 +08:00
slzhou 3e4f9db185 fix: trigger ci test 2022-05-17 20:53:36 +08:00
slzhou d46c393598 fix: mnode not ready for connect from udfd 2022-05-17 20:47:40 +08:00
slzhou ee2f3e7e05 fix: clear invalid udf func handle 2022-05-17 20:01:01 +08:00
slzhou e73b1c4889 fix: support more rows with udf unit test 2022-05-17 19:22:58 +08:00
Haojun Liao aefa9bd891 refactor: do some internal refactor. 2022-05-17 16:53:55 +08:00
Shengliang Guan d7e895448d fix: conflicts after refactor SRpcMsg 2022-05-17 16:32:23 +08:00
slzhou 2d0b29d295 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-17 15:42:52 +08:00
slzhou 7967f2d7c0 fix: sanitizing tudf memory 2022-05-17 15:19:32 +08:00
slzhou e8880e1544 fix: udf memory sanitizing 2022-05-17 15:14:16 +08:00
Zhiqiang Wang 9a7126e0e2
Merge pull request #12580 from taosdata/fix/ZhiqiangWang/fix-15602-fix-win-str-to-int64-error
fix(os): win str to int64 error
2022-05-17 14:18:21 +08:00
afwerar b7ca4f7710 fix(os): win str to int64 error 2022-05-17 13:50:16 +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
slzhou c94c43951e fix: sanitize udf memory usage 2022-05-17 11:13:11 +08:00