Commit Graph

1333 Commits

Author SHA1 Message Date
Haojun Liao c2e8aa9659 refactor: do some internal refactor. 2022-06-12 00:31:34 +08:00
Haojun Liao f5dacec38d fix(query): add more check for timestamp in converting. 2022-06-12 00:08:01 +08:00
liuyao f3750b1177
Merge pull request #13737 from taosdata/feature/TD-16425
feat(stream): support spread、elapsed、histogram、hll
2022-06-11 21:19:23 +08:00
Haojun Liao eee5408d25 Merge branch 'feature/3_liaohj' of github.com:taosdata/tdengine into feature/3_liaohj 2022-06-11 19:28:44 +08:00
Haojun Liao d0dd451494 refactor: do some internal refactor of sample function. 2022-06-12 15:25:37 +08:00
Ganlin Zhao b342561535 Merge branch '3.0' into enh/top_bot_split 2022-06-11 19:25:43 +08:00
Ganlin Zhao b53c65ea27 disable selectivity function for top split for now 2022-06-11 19:22:57 +08:00
Haojun Liao b0593497c4
Merge pull request #13731 from taosdata/feature/3_liaohj
fix(query): set correct data output position.
2022-06-11 19:07:57 +08:00
54liuyao e7196dda3f feat(stream): support spread、elapsed、histogram、hll 2022-06-11 18:41:20 +08:00
Haojun Liao 797fba7716 fix(query): set correct data output position. 2022-06-11 18:01:56 +08:00
Xiaoyu Wang 67baa48961
Merge pull request #13720 from taosdata/feature/3.0_wxy
fix: some problems of parser
2022-06-11 17:16:47 +08:00
Ganlin Zhao b9cc1e6d09 add top getenv function for merge function 2022-06-11 16:39:26 +08:00
Ganlin Zhao 15ba5769e0 fix crash 2022-06-11 16:29:02 +08:00
Ganlin Zhao 40f6fad49f fix bug 2022-06-11 16:21:45 +08:00
Ganlin Zhao 6473c85e13 fix bugs 2022-06-11 16:14:08 +08:00
Ganlin Zhao e9a8217f97 fix getTopBotInfoSize issue 2022-06-11 15:44:55 +08:00
Xiaoyu Wang e17396be9c fix: some problems of parser 2022-06-11 15:44:49 +08:00
Ganlin Zhao 56705a995f enable top function split 2022-06-11 15:29:26 +08:00
Ganlin Zhao 4c29b82626 refactor 2022-06-11 15:18:13 +08:00
Ganlin Zhao ab9b76e1f9 store original data type in STopBotRes for merge function 2022-06-11 14:35:28 +08:00
Ganlin Zhao 33b455df85 add top merge function 2022-06-11 13:32:51 +08:00
Ganlin Zhao 546f8d892f Merge branch '3.0' into enh/top_bot_split 2022-06-11 11:11:37 +08:00
Ganlin Zhao a94abd5dae support merge function resType same as original input type 2022-06-11 11:10:47 +08:00
54liuyao ee5517d5ee feat(stream): combine function spread\elapsed\histogram\hll 2022-06-11 10:28:44 +08:00
Ganlin Zhao 741d0c5c69 support merge function resType same as original input type 2022-06-10 21:10:55 +08:00
Ganlin Zhao be88d8027f enh(query): refactor function merge code to provide common interface 2022-06-10 19:31:48 +08:00
Ganlin Zhao 40f5ff71f8 add top/bot splitting 2022-06-10 18:32:34 +08:00
Ganlin Zhao 220b9eb558
Merge pull request #13671 from taosdata/fix/timezone_minorfix
fix(query): timezone check minor fix
2022-06-10 17:44:37 +08:00
Haojun Liao dba09f9cd8
Merge pull request #13679 from taosdata/feature/3_liaohj
fix(query): add value check.
2022-06-10 15:59:05 +08:00
Haojun Liao 2da08076ce fix(query): add value check. 2022-06-10 14:49:49 +08:00
Xiaoyu Wang bc32629c15 merge 3.0 2022-06-10 14:32:54 +08:00
Xiaoyu Wang 46bac2f579 fix: a problem of interval distributed split 2022-06-10 14:28:58 +08:00
Haojun Liao 24cca6cbcd Merge branch '3.0' into feature/3_liaohj 2022-06-10 11:28:10 +08:00
Haojun Liao e99d088f35 refactor: do some internal refactor. 2022-06-10 10:37:52 +08:00
Haojun Liao 85d4ee6031 refactor: do some internal refactor. 2022-06-10 10:29:53 +08:00
Ganlin Zhao e46783954d fix(query): timezone check minor fix 2022-06-10 10:18:31 +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 2efbb56997 enable elapsed function splitting 2022-06-09 20:09:37 +08:00
Ganlin Zhao d2efa06742 add elapsed function merge/partial functions 2022-06-09 19:49:29 +08:00
Ganlin Zhao 564b184978
Merge pull request #13657 from taosdata/fix/TD-16372
fix(query): add to_iso8601 function timezone validation
2022-06-09 19:45:02 +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 cbfa116d06 fix(query): add to_iso8601 function timezone validation
TD-16372
2022-06-09 17:26:49 +08:00
Ganlin Zhao 32591162b4 fix(query): add to_iso8601 function timezone validation
TD-16372
2022-06-09 17:17:10 +08:00
Ganlin Zhao 20b1ee6160 fix bugs 2022-06-09 14:21:27 +08:00
Ganlin Zhao bed14b6ee3 enable hll splitting 2022-06-09 13:36:49 +08:00
Ganlin Zhao 8e65f1e426 add hll partial/merge functions 2022-06-09 13:31:33 +08:00
Ganlin Zhao d1a0ab2445 add hll partial/merge translate functions 2022-06-09 11:36:28 +08:00
Ganlin Zhao 23c0bdf052 enh(query): add hll function distributed splitting 2022-06-09 10:57:32 +08:00
Ganlin Zhao ca2d1f8b3c Merge branch '3.0' into enh/histogram_split 2022-06-08 20:34:39 +08:00
Ganlin Zhao ea05f8af12 fix bugs 2022-06-08 20:30:43 +08:00
Ganlin Zhao 9ccc3fb853 fix: enable histogram splitting 2022-06-08 19:12:57 +08:00
Ganlin Zhao fc1ad1aeac add histogram partial/merge function 2022-06-08 19:02:07 +08:00
Ganlin Zhao c07bea7ff5 add histogram partial/merge function 2022-06-08 18:40:16 +08:00
54liuyao a8da3cfd14 feat(stream): stream state support apercentile 2022-06-08 18:20:43 +08:00
Ganlin Zhao 081a8a62b2 add histogram partial/merge translate functions 2022-06-08 17:59:32 +08:00
Ganlin Zhao d49f1dbc15 enh(query): add histogram function distributed splitting
TD-16321
2022-06-08 17:38:51 +08:00
Ganlin Zhao e4216bbc87 fix bugs 2022-06-08 16:35:45 +08:00
Ganlin Zhao 991365802b enable spread splitting 2022-06-08 16:35:32 +08:00
Ganlin Zhao dad3dd4f97 fix bugs 2022-06-08 16:35:13 +08:00
Ganlin Zhao 622b4f8d47 add spread split partial/merge function 2022-06-08 16:34:48 +08:00
Ganlin Zhao 183fcac013 add spread splitting translate fucntions 2022-06-08 16:34:37 +08:00
Ganlin Zhao ad895c243d enh(query): add spread function distributed splitting 2022-06-08 16:34:23 +08:00
Ganlin Zhao b6eaec2ad4 Merge branch '3.0' into feature/dist_split_glzhao 2022-06-08 11:13:24 +08:00
Ganlin Zhao b93ea371a6 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0 2022-06-08 11:13:08 +08:00
Ganlin Zhao e5b1ba6dd1 add apercentile "t-digest" splitting 2022-06-08 11:11:48 +08:00
54liuyao 262a221c12 distributed interval 2022-06-08 09:33:11 +08:00
Ganlin Zhao 6fff47b389 fix apercentile percent param in distributed splitting 2022-06-07 20:26:34 +08:00
Ganlin Zhao 367af0ec30 fix bugs 2022-06-07 19:55:55 +08:00
Ganlin Zhao 53ee89a505 fix bugs 2022-06-07 19:30:49 +08:00
Ganlin Zhao 351ac2d81c fix bugs 2022-06-07 19:16:40 +08:00
Ganlin Zhao e6a852090f add apercentile distributed spliting 2022-06-07 18:42:20 +08:00
Ganlin Zhao dff653ed16 add apercentile distributed spliting 2022-06-07 16:54:08 +08:00
Ganlin Zhao 49b277e64b refactor 2022-06-07 14:12:12 +08:00
Ganlin Zhao 12f4bc3c90 refactor 2022-06-07 11:45:55 +08:00
Ganlin Zhao 384f226267 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0 2022-06-07 11:27:09 +08:00
Ganlin Zhao 5d543449c9 enh(query): add distributed splitting of aggregate function
TD-16321
2022-06-07 11:23:19 +08:00
Xiaoyu Wang 0b5c08edb9 merge 3.0 2022-06-06 11:47:20 +08:00
afwerar ac09ef04a9 fix(os): add win32 udf case 2022-06-05 17:02:43 +08:00
Xiaoyu Wang 8ba9496471 feat: add physical plannode of indefinite rows func 2022-06-04 22:57:01 +08:00
54liuyao 5400507245 feat(stream): stream state operator 2022-06-04 20:36:28 +08:00
Xiaoyu Wang 0ef1a19b23
Merge pull request #13440 from taosdata/feature/3.0_wxy
feat: group by distributed split
2022-06-04 09:49:44 +08:00
Xiaoyu Wang 7ede8db3c4 fix: a problem of parser async 2022-06-04 09:33:13 +08:00
Haojun Liao f1bcfb309d fix(query): set null for empty min/max 2022-06-03 11:14:30 +08:00
Ganlin Zhao 077724b892
Merge pull request #13423 from taosdata/fix/TD-16232
fix(query): concat/concat_ws function output incorrect when all params are constant and include NULL value.
2022-06-02 18:49:35 +08:00
Ganlin Zhao de167cd46d fix(query): concat/concat_ws function output incorrect when
all param are constant and include NULL value.

TD-16232
TD-16233
2022-06-02 10:17:07 +00:00
Xiaoyu Wang 6c5ec22718
Merge pull request #13417 from taosdata/feature/3.0_wxy
feat: stream interval distributed split
2022-06-02 17:21:04 +08:00
Shengliang Guan 0bade86534
Merge pull request #13410 from taosdata/fix/mnode
enh: adjust vnode replica and some logs
2022-06-02 17:06:10 +08:00
Xiaoyu Wang f9b7443482 feat: stream interval distributed split 2022-06-02 16:38:44 +08:00
Xiaoyu Wang f45ddaf1c8 feat: stream interval distributed split 2022-06-02 16:37:46 +08:00
Liu Jicong 77fe6a4ef7
Merge branch '3.0' into feature/3_liaohj 2022-06-02 15:05:49 +08:00
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
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 47f0c6db6a enhance: refine udfd code 2022-05-17 10:08:15 +08:00
slzhou 5a15151b87 feat: refine udfd 2022-05-17 10:00:13 +08:00
Ganlin Zhao 9dcf9248d7 feat(query): add HYPERLOGLOG function 2022-05-16 22:43:06 +08:00
Ganlin Zhao a3f5e4723a
Merge pull request #12552 from taosdata/feature/3.0_glzhao
feat(query): add tail function
2022-05-16 21:50:31 +08:00
Ganlin Zhao ede4a57c99 enh(query): tail function handle offset param 2022-05-16 19:36:04 +08:00
slzhou c245309e6e feat: enhance udfd epset processing with connect msg and callback epset parameter 2022-05-16 19:03:36 +08:00
Ganlin Zhao a281da1379 fix(query): fix tail function points larger than total rows issue 2022-05-16 17:02:01 +08:00
Ganlin Zhao 21b5f72340 fix(query): fix tail function NULL value handing. 2022-05-16 16:35:59 +08:00
Ganlin Zhao 4be158b391 feat(query): add tail function 2022-05-16 14:29:12 +08:00
slzhou 8284d8b8e0 fix: accquire rpc client in the same way as dmInitClient 2022-05-16 13:27:04 +08:00
slzhou 9cb2473580 feat: enhance udf func stub with last ref time 2022-05-16 11:15:57 +08:00
Ganlin Zhao 3ef067ff03 feat(query): add tail function 2022-05-16 11:03:15 +08:00
slzhou 4ae7a16749 fix: teardown udf optimization 2022-05-16 09:24:35 +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 89ba943981 fix: change udf comment 2022-05-15 14:15:46 +08:00
slzhou 692ae29c6c fix: clean the udf handles cache when pipe error 2022-05-14 23:39:10 +08:00
slzhou 911cd1fe66 fix: reuse existing udf handles and teardown the handle later 2022-05-14 22:51:13 +08:00
slzhou cef0f74cb3 fix: udf aggregate function handle does not exist 2022-05-14 18:28:51 +08:00
slzhou 56cc2c06f9 fix: udf aggregate function handle does not exist 2022-05-14 18:28:24 +08:00
slzhou a58a0e79c6 fix: uv task error when the pipe is NULL 2022-05-14 18:09:44 +08:00
slzhou 7161919086 fix: finish uv task when event loop start uv task failed 2022-05-14 17:20:22 +08:00
slzhou 2a42fc66bc fix: udf task to queue whenever uv_write result 2022-05-14 16:51:16 +08:00
slzhou 8d1ddbd877 fix: remove from task queue before signalling caller 2022-05-14 15:42:21 +08:00
slzhou b53e7192fc fix: core caused by invalid total rows of data block when executing sql like select udf2(f2) from udf.t2 group by 1-udf1(f1) 2022-05-14 09:31:30 +08:00
Shengliang Guan 253651a521
Merge pull request #12449 from taosdata/feature/3.0_glzhao
feat(query): add sample function using reservoir sampling method
2022-05-13 23:27:07 +08:00
Ganlin Zhao c1666e7e02 feat(query): add sample function 2022-05-13 22:08:37 +08:00
Ganlin Zhao 18ac565a93 feat(query): add sample function 2022-05-13 22:06:22 +08:00
Shengliang Guan 2258916b1d test: recover tmq/basic5.py 2022-05-13 22:02:55 +08:00
shenglian-zhou 095217a204
Merge pull request #12445 from taosdata/feature/udf
feat: fix erros of square int overflow and block capacity set before filling a new column
2022-05-13 21:59:02 +08:00
afwerar 0815843e94 fix(os): make taosd.exe taos.exe run on windows. 2022-05-13 21:42:16 +08:00
Ganlin Zhao 315a875208 feat(query): add sample function 2022-05-13 21:36:33 +08:00
Ganlin Zhao d24254fb84 feat(query): add sample function 2022-05-13 21:13:35 +08:00
slzhou a6900a7e96 fix : udf2 overflow for large int multiply large int 2022-05-13 21:02:32 +08:00
Shengliang Guan d4e0a27ef3 Merge remote-tracking branch 'origin/3.0' into feature/dnode 2022-05-13 17:46:51 +08:00
Haojun Liao 86031c1985 fix(query): add the repeat scan flag check during aggregate executor. 2022-05-13 12:17:09 +08:00
Shengliang Guan 992a64e7c8 Merge remote-tracking branch 'origin/3.0' into feature/dnode 2022-05-13 11:09:02 +08:00
shenglian-zhou c5faaca906
Merge pull request #12407 from taosdata/feature/udf
fix: udf2 support int and double data type
2022-05-13 09:49:13 +08:00
Haojun Liao e468363ce1
Merge pull request #12409 from taosdata/feature/3.0_liaohj
fix(query): close read fd when finishing scanning data files.
2022-05-13 01:25:38 +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 3678aa9094
Merge pull request #12391 from taosdata/feature/3.0_liaohj
fix(query): fix special pseudo column caused taosd crash.
2022-05-12 23:49:21 +08:00
slzhou 73d55e7c6b fix: udf2 support int and double data type 2022-05-12 22:58:49 +08:00
Ganlin Zhao 8b9dd500bd
Merge pull request #12401 from taosdata/feature/3.0_glzhao
feat(query): add mavg function
2022-05-12 22:53:36 +08:00
Ganlin Zhao 1e503061ed feat(query): add mavg function 2022-05-12 21:25:53 +08:00
Ganlin Zhao 8d21c662aa feat(query): add mavg function 2022-05-12 21:16:34 +08:00
Ganlin Zhao 818e3636d6 feat(query): add mavg function 2022-05-12 20:40:17 +08:00
Haojun Liao 69e9f6972c other: add some missing modification files to git. 2022-05-12 17:47:01 +08:00
Haojun Liao 4eaf1f5bb6 refactor: do some internal refactor. 2022-05-12 17:34:07 +08:00
Shengliang Guan 47970ff8a4 refactor: node mgmt 2022-05-12 17:30:57 +08:00
Shengliang Guan dd87e8f7b9 refactor: node mgmt 2022-05-12 17:12:40 +08:00
slzhou@taodata.com 278f5262ce Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-12 16:50:26 +08:00
shenglian-zhou 3516696a66
Merge pull request #12382 from taosdata/feature/udf
feature(udf): follow tsdb_code error convention
2022-05-12 16:50:03 +08:00
slzhou@taodata.com 8927155013 feat:add udf dedicated errors 2022-05-12 16:49:31 +08:00
slzhou@taodata.com c95d3cdb36 feature(udf):error follows tsdb_code standard 2022-05-12 15:43:32 +08:00
shenglian-zhou 7357c80720
Merge pull request #12377 from taosdata/feature/udf
feature(udf): column has member hasNull
2022-05-12 15:39:21 +08:00
Ganlin Zhao aba7e4a6f6
Merge pull request #12376 from taosdata/feature/3.0_glzhao
feat(query): add csum function
2022-05-12 15:18:49 +08:00
slzhou@taodata.com d7bd682237 column has member hasNull 2022-05-12 14:42:57 +08:00
Ganlin Zhao 71e43677f7 feat(query): add csum function 2022-05-12 14:38:56 +08:00
Xiaoyu Wang 385068caf9
Merge pull request #12350 from taosdata/feature/3.0_wxy
fix: some problems of parser
2022-05-11 20:33:42 +08:00
Xiaoyu Wang 510283290d fix: some problems of parser 2022-05-11 19:49:04 +08:00
Xiaoyu Wang 41e36dddb7 fix: some problems of parser 2022-05-11 19:03:59 +08:00
Ganlin Zhao 93b0cd8047
Merge pull request #12343 from taosdata/feature/3.0_glzhao
feat(query): add state_duration function
2022-05-11 17:02:24 +08:00
Ganlin Zhao 977c3fe400 feat(query): add state_duration function 2022-05-11 15:42:31 +08:00
Ganlin Zhao 6a94ad7346
Merge pull request #12321 from taosdata/feature/3.0_glzhao
feat(query): add state_count function
2022-05-11 09:50:56 +08:00
Haojun Liao a4015fdb2c
Merge pull request #12315 from taosdata/feature/3.0_liaohj
refactor: do some internal refactor.
2022-05-10 22:07:02 +08:00
shenglian-zhou f718be6ec1
Merge pull request #12320 from taosdata/feature/udf
feature(udf): disable udfd starting
2022-05-10 22:04:20 +08:00
Xiaoyu Wang 8975c6e042 Merge remote-tracking branch 'origin/3.0' into feature/3.0_wxy 2022-05-10 21:00:18 +08:00
Xiaoyu Wang 2745113a77 fix: some problems of parser 2022-05-10 20:59:10 +08:00
Ganlin Zhao 46c9e0f1c2 refactor code format 2022-05-10 20:51:31 +08:00
Ganlin Zhao 57cd462000 Merge branch '3.0' into feature/3.0_glzhao 2022-05-10 20:44:57 +08:00
Ganlin Zhao 3c7b971841 feat(query): add state_count function 2022-05-10 20:35:54 +08:00
Ganlin Zhao 85adb8611c feat(query): add state_count function 2022-05-10 20:32:03 +08:00
slzhou fe99a19687 feature(udf):start udfd can be disabled 2022-05-10 20:24:01 +08:00
slzhou adceacd59b feature(udf):start udfd can be disabled 2022-05-10 20:07:46 +08:00
Haojun Liao 8c47b350dc fix(query): Pseudo time window result expands to multiple rows in case of multiple rows aggregates function existing. 2022-05-10 18:21:54 +08:00
shenglian zhou 8dda49ac17 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-10 13:01:06 +08:00
shenglian zhou 2ba5fdc36f fix: block extraction null set error 2022-05-10 11:22:31 +08:00
Ganlin Zhao 65fe36ffb4
Merge pull request #12295 from taosdata/feature/3.0_glzhao
fix(query): fix histogram normalized result incorrect for super table
2022-05-10 11:11:25 +08:00
Ganlin Zhao 7213548847 fix(query): fix histogram normalized result incorrect for super table
TD-15407
2022-05-10 10:15:33 +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
Haojun Liao f872ef975f
Merge pull request #12274 from taosdata/feature/3.0_liaohj
enh(query):support selectivity function and normal column data query.
2022-05-09 23:36:51 +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 cfa77a2d39 feat(query): add leastsquares function 2022-05-09 20:04:03 +08:00
Ganlin Zhao 79570c93a3 feat(query): add leastsquares function 2022-05-09 19:37:16 +08:00
Haojun Liao 55d11618d0 fix(query): fix float value min/max query error. 2022-05-09 19:13:50 +08:00
Haojun Liao ea18b8a7dc feature(query): bottom function is available. 2022-05-09 17:48:23 +08:00
Haojun Liao a030a9f32f enh(query):support selectivity function and normal column data query. 2022-05-09 16:06:15 +08:00
shenglian-zhou e93376de9a
Merge pull request #12252 from taosdata/feature/udf
feature(udf): enhance error process
2022-05-09 12:14:17 +08:00
shenglian zhou 8f3619ee89 feature(udf): enhance error process 2022-05-09 11:36:46 +08:00
shenglian-zhou ea282e0d9d
Merge pull request #12246 from taosdata/feature/udf
feature(udf): pipe is placed under datadir and remove it after udfd exist and is hidden
2022-05-09 10:03:22 +08:00
shenglian zhou 736fddc4cd feature(udf): pipe is placed under datadir and remove it after udfd exist and is hidden 2022-05-09 09:36:50 +08:00
afwerar 02e6b38270 fix(os): make taosd run on win. 2022-05-09 03:22:05 +08:00
Haojun Liao f6be0f0dfe other: merge with 3.0. 2022-05-08 16:06:47 +08:00
Haojun Liao 9025a5d735 Merge branch '3.0' into feature/3.0_liaohj 2022-05-08 00:14:02 +08:00
Haojun Liao 5c60c6046d refactor: do some internal refactor. 2022-05-07 23:01:56 +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
Haojun Liao 6ce36a083e
Merge pull request #12214 from taosdata/feature/3.0_liaohj
fix(query): remove a false assert.
2022-05-07 19:00:29 +08:00
Haojun Liao 9b3d7aa410 fix(query): remove a false assert. 2022-05-07 18:19:56 +08:00
54liuyao 599ea89a53 stream scan 2022-05-07 18:10:45 +08:00
Ganlin Zhao 48f708dfe6 Merge branch '3.0' into feature/3.0_glzhao 2022-05-07 15:32:27 +08:00
Ganlin Zhao e2413a062c fix: histogram normalized can only be 0/1 2022-05-07 14:29:50 +08:00
Ganlin Zhao dd7cec4132 feat(query): add histogram normalized processing 2022-05-07 14:23:07 +08:00
Ganlin Zhao 2139ccceb0
Merge pull request #12191 from taosdata/feature/3.0_glzhao
feat(query): add histogram param parsing
2022-05-07 14:08:01 +08:00
Ganlin Zhao 660b610f04 fix(query): fix histogram function output 2022-05-07 11:35:03 +08:00
Ganlin Zhao bb3681cd71 feat(query): add histogram param parsing 2022-05-07 10:24:41 +08:00
Ganlin Zhao bc5e63b0a7 feat(query): add histogram param parsing 2022-05-06 21:44:25 +08:00
Ganlin Zhao d36a9286b5
Merge pull request #12172 from taosdata/feature/3.0_glzhao
feat(query): add histogram function
2022-05-06 21:42:56 +08:00
Haojun Liao 1a2d170509
Merge pull request #12166 from taosdata/feature/3.0_liaohj
fix(query): set the correct result field length for first/last query.
2022-05-06 19:47:06 +08:00
Haojun Liao 809a3eda25 fix(query): set the correct result field length for first/last query. 2022-05-06 18:16:16 +08:00
Haojun Liao 29651b7b8b
Merge pull request #12163 from taosdata/feature/3.0_liaohj
fix(query): sort according to the generated column data in order by operator.
2022-05-06 18:10:14 +08:00
slzhou c9ee1b0dee fix: core dump when pass mulitiple columns from taosd to udfd 2022-05-06 17:41:49 +08:00
Haojun Liao 8ffdd1b715 other: merged with 3.0 branch. 2022-05-06 17:26:52 +08:00
Ganlin Zhao ea88da15db feat(query): add histogram function 2022-05-06 15:51:18 +08:00
Haojun Liao e4f0a0fc67 fix(query): enable table name query for super table. 2022-05-05 23:47:44 +08:00
shenglian zhou 8e0eda6c0c Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-05 19:52:07 +08:00
shenglian zhou 8b9e94a038 scalar udf memory by itself 2022-05-05 19:03:05 +08:00
Xiaoyu Wang 1361bf4eed fix: plan problem of tag scanning 2022-05-05 14:49:00 +08:00
Haojun Liao f096f27ce8 refactor: do some internal refactor. 2022-05-01 15:22:28 +08:00
Haojun Liao 4decef962a Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-05-01 14:19:57 +08:00
Xiaoyu Wang 3b4f9b91cf feat: sql commadn 'select max(c1), c2 from t2' 2022-05-01 08:38:17 +08:00
Haojun Liao 3d931faa5b refactor(query): do some internal refactor. 2022-05-01 00:23:22 +08:00
shenglian-zhou 99cf4ec499
Merge pull request #12062 from taosdata/feature/udf
feat(udf): udaf pass the first time
2022-04-29 21:23:57 +08:00
Xiaoyu Wang 022f5bfc14 feat: rewrite timeline function 2022-04-29 20:06:26 +08:00
slzhou 193a84717d udaf pass the first time 2022-04-29 18:20:50 +08:00
Haojun Liao 77f1779820
Merge pull request #12042 from taosdata/feature/3.0_liaohj
fix(query): alter the type of result of the length function.
2022-04-29 14:00:16 +08:00
Haojun Liao 5711656304 fix(query): alter the type of result of the length function. 2022-04-29 11:55:25 +08:00
Ganlin Zhao 6a73011231 Merge branch '3.0' into feature/3.0_glzhao 2022-04-28 21:40:27 +08:00
Ganlin Zhao d8f8e075e1 feat(query): add spread function
TD-14297
2022-04-28 21:27:46 +08:00
Liu Jicong 4a40bf25ee fix: interval status do not reset for stream 2022-04-28 20:03:30 +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 974c679c84 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-04-28 10:30:20 +08:00
shenglian zhou d9490f8a8b finalize result buf location can be specified 2022-04-28 10:30:00 +08:00
afwerar 48e379f320 fix(shell): memory init error. 2022-04-27 09:48:33 +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 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 65598879ca pass compilation after merging 3.0 2022-04-26 16:36:34 +08:00
slzhou 21a28306e0 merge 3.0 2022-04-26 16:09:13 +08:00
Xiaoyu Wang cc231653ad enh: format code 2022-04-26 12:59:53 +08:00
slzhou ac7f492cce udaf has result processing 2022-04-26 09:55:04 +08:00
shenglian zhou 38f43f5a9f home office sync 2022-04-26 07:22:20 +08:00
Xiaoyu Wang ba509423fc fix: some problems of udf and 'create table' 2022-04-25 20:35:05 +08:00
shenglian zhou f8e71908c4 add feature that udaf produces no result 2022-04-25 18:19:57 +08:00
Xiaoyu Wang 14e9fa355c fix: some problems of udf and 'create table' 2022-04-25 17:57:14 +08:00
Ganlin Zhao 30a255cb93
Merge pull request #11841 from taosdata/fix/TD-15116
fix(query): fix scalar function input is constant return var type value contains illegal characters.
2022-04-25 17:55:22 +08:00
Ganlin Zhao 8c36142a9c fix(query): fix scalar function input is constant return var type value contains illegal characters.
TD-15116
2022-04-25 17:16:47 +08:00
shenglian zhou 73a0ad7414 udaf integration first step 2022-04-25 15:44:40 +08:00
afwerar 276eb84746 feature(dnode): mul parameter start. 2022-04-25 14:05:09 +08:00
afwerar f966242047 feature(dnode): mul parameter start. 2022-04-25 13:57:55 +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
Haojun Liao 199a3610f7 fix: fix some syntax errors. 2022-04-25 09:44:39 +08:00
slzhou e29141a4ad udfc open/close in vm init/cleanup 2022-04-25 09:30:20 +08:00
Haojun Liao 5eed1159b1 other: merge 3.0 2022-04-25 09:16:37 +08:00
shenglian zhou 420ca1ef45 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-25 05:37:56 +08:00
Ganlin Zhao 8ace6c9bdf
Merge pull request #11811 from taosdata/fix/TD-15107
fix(query): fix math function NULL values is not properly appended
2022-04-24 22:25:01 +08:00
shenglian zhou 69eaa0979d Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-24 21:22:06 +08:00
Ganlin Zhao aadbba44cc fix(query): fix math function NULL values is not properly appended
TD-15056
2022-04-24 21:17:30 +08:00
Ganlin Zhao 770be0364f Merge branch '3.0' into feature/3.0_glzhao 2022-04-24 20:15:26 +08:00
slzhou a0852402a9 api change : remove udfc handle and epset 2022-04-24 17:36:07 +08:00
slzhou a9d47ded0a more udf info 2022-04-24 15:11:12 +08:00
slzhou 3799c5c62f epset and retrieve so from mnode 2022-04-24 10:53:50 +08:00
slzhou 3bc432a52e change libudf1.so path temporaly 2022-04-24 08:50:40 +08:00
shenglian zhou 35f062a5da Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-23 22:16:45 +08:00
shenglian zhou 52cc00987b udfd pipe name generating with dnode id through environment passing 2022-04-23 22:16:26 +08:00
Haojun Liao 4b36763429 refactor(query): do some internal refactor. 2022-04-22 22:43:07 +08:00
Haojun Liao d83ce4044a
Merge pull request #11754 from taosdata/feature/3.0_liaohj
fix(driver): the user specified port that is in taos_connect API isn't active.
2022-04-22 19:33:23 +08:00
slzhou 400436ffdd fix hash map key length error 2022-04-22 18:41:56 +08:00
WANG MINGMING 4291981b54
Merge pull request #11690 from taosdata/feature/TD-13041
fix: bugs in to_json
2022-04-22 18:23:27 +08:00
Ganlin Zhao 05f1e64108 Merge branch '3.0' into feature/3.0_glzhao 2022-04-22 17:17:46 +08:00
shenglian-zhou 0d5dd77f59
Merge pull request #11748 from taosdata/3.0_udfd
feat(udf):fix start/stop/restart udfd
2022-04-22 17:09:53 +08:00
Ganlin Zhao b96d372e81 feat(query): add avg function
TD-14295
2022-04-22 16:56:04 +08:00
Ganlin Zhao 85bbe4e832
Merge pull request #11755 from taosdata/feature/3.0_glzhao
refactor(query): limit cast var type length to 1000
2022-04-22 16:30:11 +08:00
Ganlin Zhao a601081e6d refactor(query): limit cast var type length to 1000 2022-04-22 16:04:17 +08:00
slzhou a395b21578 fix start/stop/restart udfd 2022-04-22 15:21:26 +08:00
Haojun Liao e28b75b8d4 refactor(query): do some internal refactor. 2022-04-22 15:07:20 +08:00
slzhou f41edf3be8 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-22 11:14:36 +08:00
slzhou d537322e41 udf scalar api change 2022-04-22 10:10:14 +08:00
afwerar fc24521621 fix(os): windows compile 3.0. 2022-04-22 09:54:27 +08:00
slzhou 49dc204076 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-22 08:14:09 +08:00
slzhou 7c54b69977 sigkill to kill taosd causes udfd to exit 2022-04-22 08:13:45 +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
slzhou a018c70117 udfd proxy init and close for udf calling 2022-04-21 13:10:46 +08:00
slzhou d4734eb18e Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-21 09:45:54 +08:00
slzhou b4d3008da3 remove udfd start/stop from tudf.c 2022-04-21 09:45:37 +08:00
shenglian-zhou babef48c8a
Merge pull request #11687 from taosdata/3.0_udfd
feat(udf):dnode start/stop/restart udfd and vnode create/destory proxy to udfd
2022-04-21 09:10:16 +08:00
Haojun Liao 46a3a58fac refactor:do some internal refactor. 2022-04-20 20:41:53 +08:00
wangmm0220 d2a1203eeb refactor: fix bugs in to_json 2022-04-20 20:39:19 +08:00
WANG MINGMING 66400aff66
Merge pull request #11671 from taosdata/feature/TD-13041
feat: json tag
2022-04-20 20:22:59 +08:00
slzhou d8ba1d32f4 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-20 19:29:17 +08:00
slzhou ca34398c43 prepare for dnode start/stop/restart udfd and vnode/snode/qnode split 2022-04-20 19:27:39 +08:00
Ganlin Zhao 7aac52e7f1
Merge pull request #11677 from taosdata/fix/TD-14770
refactor(query): add parameter combination check for cast
2022-04-20 18:34:23 +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
slzhou 177b1c96a5 udfd final program ongoing 2022-04-20 17:46:29 +08:00
Xiaoyu Wang 6f377189d0 feat: sql command 'create function' 2022-04-20 17:43:02 +08:00
Ganlin Zhao 1403fa1d6e refactor(query): add parameter combination check for cast 2022-04-20 17:35:49 +08:00
wangmm0220 0fb41733ea refactor: merge from 3.0 2022-04-20 17:08:52 +08:00
Haojun Liao 490f7f3b14
Merge pull request #11664 from taosdata/feature/3.0_liaohj
fix(query): fix invalid write in distinct query.
2022-04-20 16:15:22 +08:00
Haojun Liao 3e80cead0b fix:fix an link error. 2022-04-20 15:21:51 +08:00
Haojun Liao f933aa01cb fix:fix some compiling errors. 2022-04-20 15:20:08 +08:00
Haojun Liao 343988beeb refactor: do some internal refactor. 2022-04-20 14:59:06 +08:00
Shengliang Guan 76883aa42f refactor: check db options 2022-04-20 10:25:03 +08:00
Shengliang Guan 8213315fdd
Merge pull request #11643 from taosdata/feature/3.0_liaohj
fix(query): fix the crash caused by the complex having clause
2022-04-20 00:00:46 +08:00
Ganlin Zhao 8649bbca02
Merge pull request #11642 from taosdata/fix/TD-14843
refactor(query): refactor cast function
2022-04-19 21:03:06 +08:00
Ganlin Zhao a8ea6063d5
Merge pull request #11646 from taosdata/fix/TD-14905
fix(query): fix timezone function with trailing characters
2022-04-19 20:41:44 +08:00
Ganlin Zhao 43aecff7ea fix(query): fix timezone function with trailing characters 2022-04-19 20:15:29 +08:00
Haojun Liao 6956c46226 Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-19 19:46:23 +08:00
Ganlin Zhao f9947be46f refactor(query): refactor cast function
TD-14837
TD-14843
TD-14904
2022-04-19 18:22:59 +08:00
Ganlin Zhao 11028921b6 refactor(query): refactor cast function
TD-14837
TD-14843
TD-14904
2022-04-19 18:16:29 +08:00
Haojun Liao b122538268 refactor: do some internal refactor. 2022-04-19 18:06:59 +08:00
shenglian-zhou b62b17865a
Merge pull request #11572 from taosdata/3.0_udfd
feat(udf): UDF service refactoring with new interface
2022-04-19 17:29:57 +08:00
slzhou 0776427f45 runUdf passed 2022-04-19 16:51:02 +08:00
Haojun Liao 7f0077cad5 feat(query): a new builtin aggregate function is added. 2022-04-19 16:32:19 +08:00
Haojun Liao 1c94bbb5e4 enh(query): set the status of stream scan operator. 2022-04-19 16:11:16 +08:00
Haojun Liao a036d2f3ff fix(query): fix the bug caused by refactor in first/last function implementation. 2022-04-19 13:07:23 +08:00
slzhou f839f1def6 Merge remote-tracking branch 'origin/3.0' into 3.0_udfd_sub1 2022-04-19 12:01:10 +08:00
slzhou 71983725c3 befor debugging teardown 2022-04-19 12:00:59 +08:00
Haojun Liao 5b835514ee Merge branch '3.0' into feature/3.0_liaohj 2022-04-19 10:15:48 +08:00
Haojun Liao 2305b05869 refactor(query): do some internal refactor for executor. 2022-04-19 10:12:30 +08:00
shenglian zhou eae11bf8f0 handle uv read error 2022-04-19 09:03:04 +08:00
wangmm0220 49c3057221 refactor: merge from 3.0 2022-04-18 21:15:57 +08:00
Ganlin Zhao 00ae854c78
fix(query): fix time function related bugs (#11604)
* fix(query): fix timediff args cannot be integer values

TD-14798

* fix(query): fix timediff/timetruncate/to_unixtimestamp handling NULL value and empty string

TD-14802
TD-14803

* refactor(query): constant NULL value processing logic

TD-14802
TD-14803

* refactor(query): support timefunction arithmetic operation with boolean
constant
2022-04-18 19:20:08 +08:00
wangmm0220 24f805c5c2 refactor: add to_json function 2022-04-18 15:54:40 +08:00
Ganlin Zhao 53aedbb163 Merge branch '3.0' into hotfix/glzhao_3.0 2022-04-18 11:39:18 +08:00
Ganlin Zhao 6105dfc934 refactor(query): refactor concat/concat_ws and param check 2022-04-18 11:39:08 +08:00
shenglian zhou d9580cff53 runudf call scalar 2022-04-17 17:37:07 +08:00
slzhou 18943125f4 call udf for scalar and aggregate 2022-04-17 15:07:11 +08:00
shenglian zhou 4817f54ae9 SSDataBlock and SUdfInterBuf message passing between taosd/udfd 2022-04-16 23:34:40 +08:00
Haojun Liao 902fcb0c0b refactor(query): refactor code. 2022-04-16 19:10:21 +08:00
Haojun Liao 30602b8cfb Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-16 19:02:08 +08:00
wade zhang 3f0f31c4c2
Merge pull request #11552 from taosdata/feature/TD-14243
feat(query): support timezone function and now/today function arithmetic operation in select clause
2022-04-16 18:54:18 +08:00
Xiaoyu Wang c40b590ad8 enh: window clause validity check 2022-04-16 17:27:54 +08:00
shenglian zhou 964d944ae2 Merge branch '3.0' into 3.0_udfd 2022-04-16 17:02:09 +08:00
Haojun Liao d40f830b77 enh(query): optimize the data block load algorithm in table scan operator. 2022-04-16 16:06:48 +08:00
Haojun Liao be4d72bf80 refactor(query): refactor executor module to optimization the block load filter routine. 2022-04-16 15:15:28 +08:00
slzhou 4e6caa3495 before using ssdatablock for udfd/udfdc communication 2022-04-16 14:19:33 +08:00
Ganlin Zhao ad7323166a Merge branch '3.0' into feature/TD-14243 2022-04-16 12:51:49 +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
slzhou 7ed7624306 after trying to retrive udf info from mnode 2022-04-15 18:31:57 +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
Ganlin Zhao e655a3cc1d feat(query): support timezone() function
TD-14243
2022-04-15 13:15:29 +08:00
slzhou 5ea40c9d0e save for poweroff 2022-04-15 12:19:22 +08:00
slzhou ed597e6e54 pass compilation before udf call refinement 2022-04-15 11:19:00 +08:00
Ganlin Zhao 0439e4f9f7 Merge branch '3.0' into feature/TD-14243 2022-04-15 10:16:55 +08:00
slzhou 7a9393093d Merge branch '3.0' into 3.0_udfd 2022-04-15 08:21:56 +08:00
Ganlin Zhao ca3ce404af feat(query): support now()/today() function in select clause
TD-14243
2022-04-14 21:38:33 +08:00
shenglian zhou 946b565e99 sync home and office 2022-04-14 19:29:41 +08:00
Xiaoyu Wang 9e05fdbd7b enh(query): increase the validity check of function parameters 2022-04-14 18:18:23 +08:00
Xiaoyu Wang 64790e4de9 enh(query): increase the validity check of function parameters 2022-04-14 16:19:29 +08:00
Xiaoyu Wang 8118a20649 enh(query): increase the validity check of function parameters 2022-04-14 15:49:57 +08:00
shenglian zhou 3f62f8a333 sync home and office 2022-04-13 19:45:33 +08:00
Ganlin Zhao 9a09f15de8 feat(query): add timediff function
TD-14243
2022-04-13 16:57:58 +08:00
Ganlin Zhao 61b39204b5 feat(query): add timetruncate function
TD-14243
2022-04-13 14:14:46 +08:00
Ganlin Zhao a497670f29
Merge pull request #11440 from taosdata/feature/TD-14243
feat(query): add to_unixtimestamp function
2022-04-13 12:38:57 +08:00
Ganlin Zhao c0b3607756 feat(query): add to_unixtimestamp function
TD-14243
2022-04-13 11:41:02 +08:00
Ganlin Zhao 14a4fb036c
Merge pull request #11429 from taosdata/feature/TD-14243
feat(query): add to_iso8601 function
2022-04-12 20:36:45 +08:00
Ganlin Zhao ef4d75f463 feat(query): add to_iso8601 function
TD-14243
2022-04-12 20:02:33 +08:00
Haojun Liao 684a1f23ad
Merge pull request #11424 from taosdata/feature/3.0_liaohj
fix(query): handle crash of taosd caused by a complex expression in GROUP BY clauses.
2022-04-12 18:20:28 +08:00
Haojun Liao b9bf2515f5 fix(query): handle crash of taosd caused by a complex expression in GROUP BY clauses. 2022-04-12 17:55:17 +08:00
Ganlin Zhao ff70238e38
Merge pull request #11413 from taosdata/feature/TD-14242
feat(query): add cast function
2022-04-12 14:34:33 +08:00
Xiaoyu Wang 5a70bddb6f
Merge pull request #11411 from taosdata/feature/3.0_wxy
enh(query):optimize scanning through SQL functions
2022-04-12 13:34:03 +08:00
Xiaoyu Wang 93d379638c enh(query):optimize scanning through SQL functions 2022-04-12 13:10:47 +08:00
Haojun Liao 6f6adece3e
Merge pull request #11398 from taosdata/feature/3.0_liaohj
fix[query]: enable min/max function to be applied to bool data type.
2022-04-11 22:54:55 +08:00
Ganlin Zhao a59b558331 feat(query): add cast function
TD-14242
2022-04-11 20:22:53 +08:00
Haojun Liao 74e5ebc322 fix[query]: enable min/max function to be applied to bool data type. 2022-04-11 19:50:34 +08:00
Xiaoyu Wang 147675c71f
Merge pull request #11385 from taosdata/feature/3.0_wxy
enh: set datablock desc timestamp precision, and fix the bug of constant calculation
2022-04-11 18:05:43 +08:00
Xiaoyu Wang 983e4aa010 set datablock desc timestamp precision 2022-04-11 17:42:05 +08:00
Haojun Liao 115ac26c8e
Merge pull request #11379 from taosdata/feature/3.0_liaohj
fix[query]:enable sum function to be applied to bool data type.
2022-04-11 15:49:50 +08:00
Haojun Liao 6b681d79d4 fix[query]:enable sum function to be applied to bool data type. 2022-04-11 15:25:19 +08:00
Xiaoyu Wang cd75d1121a constant calc bugfix 2022-04-11 14:48:07 +08:00
shenglian zhou 6f5f6896a5 udfc destroy mutex after thread exit 2022-04-10 21:59:07 +08:00
shenglian zhou 4d59a4a57c Merge branch '3.0' into 3.0_udfd 2022-04-10 21:11:11 +08:00
Ganlin Zhao 6a734a74ac
Merge pull request #11365 from taosdata/feature/TD-14242
<feat>[query]: add cast function SQL syntax
2022-04-10 19:55:03 +08:00
Ganlin Zhao 5fb7a7955f Merge branch '3.0' into feature/TD-14242 2022-04-10 19:33:04 +08:00
Ganlin Zhao 03cce69b75 <feat>[query]: add cast function SQL syntax
TD-14242
2022-04-10 19:13:44 +08:00
afwerar 2662a3b69d [TD-13254]<fix>: make 3.0 grant. 2022-04-10 19:08:16 +08:00
shenglian zhou ce9585a350 before integration test success 2022-04-10 17:28:28 +08:00
shenglian zhou 44bc9731d0 sync home / office 2022-04-08 11:50:16 +08:00
shenglian zhou 517e587c35 udfd exit and restart processing 2022-04-07 17:32:58 +08:00
wangmm0220 225cf61845 merge from 3.0 2022-04-07 11:31:50 +08:00
Haojun Liao 94b7081e97 [td-14493] fix bug found by regression test. 2022-04-07 10:24:22 +08:00
Haojun Liao 50f0ab05ff [td-14493] support distinct. 2022-04-06 23:00:32 +08:00
wangmm0220 c4f67c25fb fix no return error 2022-04-06 18:47:56 +08:00
Haojun Liao 6863999ec5 [td-14493] support having in group by 2022-04-06 17:59:08 +08:00
Ganlin Zhao 928cbcec7d
Merge pull request #11252 from taosdata/feature/3.0_glzhao
[TD-14241]<feature>: substr function refactor
2022-04-06 14:48:16 +08:00
Ganlin Zhao 76d1702213 [TD-14241]<feature>: substr function refactor 2022-04-06 13:47:04 +08:00
Ganlin Zhao 5e2dbe83e7
Merge pull request #11250 from taosdata/feature/3.0_glzhao
[TD-14241]<feature>: concat/concat_ws support nchar column wtih constant
2022-04-06 12:43:12 +08:00
Ganlin Zhao 98cc544e5b [TD-14241]<feature>: concat/concat_ws support nchar column wtih constant 2022-04-06 11:49:47 +08:00
Haojun Liao a4c7e78d5f [td-14393] refactor. 2022-04-06 11:01:09 +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
Haojun Liao e7e5fd4345 [td-14393] support percentile function. 2022-04-02 23:42:00 +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
Haojun Liao b0310c90eb [td-14393] support percentile. 2022-04-02 20:13:48 +08: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
Ganlin Zhao 8bcdf8e200 [TD-14241]<feature>: refactor string functions 2022-04-02 18:34:17 +08:00
Haojun Liao 6f77eeccce [td-13039] support stddev. 2022-04-02 16:59:02 +08:00
Haojun Liao c7e749d040 Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-02 15:12:40 +08:00
Haojun Liao cf25aca809 [td-13039] refactor. 2022-04-02 15:08:48 +08:00
Ganlin Zhao db87cabd15 Merge branch '3.0' into feature/3.0_glzhao 2022-04-02 13:59:29 +08:00
Ganlin Zhao 70b0139017 Merge branch '3.0' into feature/3.0_glzhao 2022-04-02 13:57:21 +08:00
Xiaoyu Wang 9e9805f7b7 condition bugfix 2022-04-02 01:13:20 -04:00
Ganlin Zhao 5a1548bf15 [TD-14241]: substr function adoption 2022-04-02 10:40:15 +08:00
Ganlin Zhao c846c6ebf3 [TD-14241]: lower/upper function adoption 2022-04-01 17:01:13 +08:00
Ganlin Zhao dddf621aa7 [TD-14241]: concat/concat_ws fix input has both constant and column
issue
2022-04-01 16:06:22 +08:00
Ganlin Zhao 6eb6cfe279 [TD-14241]: concat_ws function adoption 2022-04-01 14:36:45 +08:00
Ganlin Zhao 6f6d0e4a09 [TD-14241]: concat function adoption 2022-03-31 22:30:16 +08:00
Ganlin Zhao 89abd4e349 [TD-14241]: add string functions 2022-03-30 16:08:38 +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
Haojun Liao dd66affd0a [td-13039] merge 3.0. 2022-03-29 20:05:04 +08:00
Ganlin Zhao ab831ee814 Merge branch 'feature/3.0_liaohj' of github.com:taosdata/TDengine into feature/3.0_liaohj 2022-03-29 17:31:37 +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
Ganlin Zhao b601542094 refactor pow/log 2022-03-28 15:45:11 +08: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 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
afwerar 222db126bc [TD-13758]<fix>: redefine memory api. 2022-03-26 00:29:53 +08:00
Ganlin Zhao 303a853c0c [TD-14240]<feature>: add math functions 2022-03-25 20:09:26 +08:00
Haojun Liao bf124afb7a
Merge pull request #10990 from taosdata/feature/3.0_liaohj
[td-13039]add api for stream computing.
2022-03-25 14:08:59 +08:00
Haojun Liao b5d011901e [td-14288] fix bug in first query. 2022-03-25 13:45:57 +08:00
shenglian-zhou 9f04cfe00e
Merge pull request #10978 from taosdata/szhou/3.0_udfd
first pull request of udfd. a lot of improvements shall follow this.
2022-03-25 11:06:57 +08:00
shenglian zhou 9c12e2bf6e start/stop process 2022-03-25 10:50:25 +08:00
shenglian zhou abedeb23d6 libuv dependency refactoring 2022-03-25 08:34:46 +08:00
shenglian zhou 14031ca668 add simple test 2022-03-24 17:43:57 +08:00
shenglian zhou 8c12733e19 pass compilation before change log 2022-03-24 14:57:48 +08:00
Haojun Liao 503300a2bd [td-13039] update test. 2022-03-24 14:21:14 +08:00
shenglian zhou 8e3d10252e move from private repo to private brach of public repo 2022-03-23 17:31:28 +08:00
Haojun Liao d82e66b7c2 [td-13039] merge 3.0 and fix bug. 2022-03-22 23:29:38 +08:00
Haojun Liao 3a6be84b80 [td-13039] support group by. 2022-03-22 18:17:04 +08:00
Xiaoyu Wang 953412238d Merge branch '3.0_query_integrate' of github.com:taosdata/TDengine into 3.0_query_integrate 2022-03-22 04:30:44 -04:00
Xiaoyu Wang ef125eaa40 merge 3.0 2022-03-22 04:29:54 -04:00
Haojun Liao 5533875326 [td-13039] support group by. 2022-03-22 16:03:42 +08:00
afwerar a263f72d58 [TD-13762]<fix>: redefine atomic api. 2022-03-22 00:54:21 +08:00
Haojun Liao 84818987b3 [td-13039] fix bug in show tables; 2022-03-21 15:25:13 +08:00
Xiaoyu Wang 9ca80596e4 merge 3.0 2022-03-21 02:00:30 -04:00
afwerar 79057240bd [TD-13759]<fix>: redefine thread api. 2022-03-20 00:47:45 +08:00
Haojun Liao cf1e4507f3 [td-13039] refactor. 2022-03-19 23:12:58 +08:00
Haojun Liao f9997a122b [td-13039] refactor and fix bug. 2022-03-15 16:51:50 +08:00
Haojun Liao e06cdb0872 [td-13039] enable interval query on ordinary table. 2022-03-15 14:37:26 +08: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
Xiaoyu Wang 54afca4d57 TD-13747 bugfix 2022-03-10 03:34:31 -05:00
Haojun Liao ddbe4095ed [td-13039] fix bug in agg query of ordinary table. 2022-03-10 15:24:05 +08:00
Haojun Liao 8345a5429b [td-13039] add min/max/systable-scanner. 2022-03-10 11:12:44 +08:00
Xiaoyu Wang 921500dbec
Merge pull request #10658 from taosdata/feature/3.0_query_integrate_wxy
TD-13704 super table plan split
2022-03-09 19:57:45 +08:00
Xiaoyu Wang b91899e757 TD-13704 super table plan split 2022-03-09 04:32:12 -05:00
Haojun Liao 459b0ef442 [td-13039] refactor. 2022-03-09 10:22:53 +08:00
Haojun Liao eb573b7fa3 Merge remote-tracking branch 'origin/3.0_query_integrate' into 3.0_query_integrate 2022-03-07 16:54:52 +08:00
Haojun Liao e75fc9a301 [td-13039] fix bug in select query. 2022-03-07 16:52:45 +08:00
Haojun Liao 92da01a8ba [td-13039] refactor. 2022-03-04 13:25:39 +08:00
Haojun Liao f0e392ae86 [td-13039] merge 3.0. 2022-03-03 19:13:29 +08:00
Shengliang Guan dc30a83f24 monitor 2022-03-02 17:48:39 +08:00
Haojun Liao 03629aabaf [td-13039] refactor. 2022-03-01 17:31:05 +08:00
Shengliang Guan 5891779fe1 common 2022-02-28 17:55:07 +08:00
Shengliang Guan e5606ccf38 Merge remote-tracking branch 'origin/3.0' into feature/config 2022-02-28 16:35:36 +08:00
Haojun Liao c35a3fa35f
Merge pull request #10388 from taosdata/feature/3.0_liaohj
Feature/3.0 liaohj
2022-02-28 15:23:57 +08:00
Shengliang Guan 7eec493a43 compare 2022-02-28 13:25:23 +08:00
Haojun Liao 6afebf9a1c [td-13039] merge 3.0 2022-02-28 10:16:59 +08:00
Shengliang Guan 39bf54bba5 rename files 2022-02-28 09:52:30 +08:00
Xiaoyu Wang b6f5d879e2 Merge remote-tracking branch 'origin/3.0' into feature/3.0_wxy 2022-02-26 05:53:15 -05:00
Xiaoyu Wang 7377c27367 TD-13495 physical plan refactoring 2022-02-25 03:29:40 -05:00
Haojun Liao 40da10fabd [td-13039] merge 3.0 2022-02-25 10:30:44 +08:00
Shengliang Guan e25637fe29 Merge remote-tracking branch 'origin/3.0' into feature/config 2022-02-25 10:05:54 +08:00
afwerar 5a37fdf28f [TD-13062]<fix>: cross platform file system. 2022-02-25 01:47:20 +08:00
Shengliang Guan 612dd71918 os env 2022-02-24 21:27:13 +08:00
Haojun Liao 90d231eb7e [td-13039] merge 3.0 2022-02-24 17:58:16 +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
Haojun Liao 2a7e0171d0 [td-13039] support interval query. 2022-02-24 17:18:56 +08:00
Shengliang Guan beae4899f2 os env 2022-02-24 11:35:22 +08:00
Haojun Liao af0180f216 [td-13039] add linear hash. 2022-02-23 15:10:15 +08:00
dapan1121 aa556cb462 feature/qnode 2022-02-23 14:34:17 +08:00
Haojun Liao b95e95dc0a [td-13039] fix bug in sorted merge operator. 2022-02-22 13:12:03 +08:00
dapan1121 8f7b375b54 feature/qnode 2022-02-21 19:31:14 +08:00
Haojun Liao 17ead5eda4 [td-11818] refactor. 2022-02-19 23:11:23 +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
Haojun Liao 71fc95cc49 [td-11818] merge 3.0 2022-02-15 15:00:06 +08:00
dapan1121 ef0d9262c9 feature/qnode 2022-02-14 19:38:06 +08:00
Haojun Liao c48fd11157 [td-11818] merge 3.0 2022-02-12 23:09:22 +08:00
Xiaoyu Wang e070ad2b77 TD-13495 planner refactoring 2022-02-11 09:19:31 -05:00
Haojun Liao 3be59e4e24 [td-11818] merge 3.0 2022-02-11 15:50:20 +08:00
Haojun Liao 0296c3415e [td-11818] refactor code. 2022-02-10 13:55:53 +08:00
Haojun Liao 3a2d723537 [td-11818]Fix bug and refactor code. 2022-02-10 13:49:17 +08:00
Xiaoyu Wang 2fb4acaaf6 TD-13338 SELECT statement translate code 2022-02-09 14:34:46 -05:00
Xiaoyu Wang 0ef0e1655b TD-13338 SELECT statement translate code 2022-02-08 20:03:32 -05:00
Xiaoyu Wang 090250f994 TD-13338 SELECT statement translate code 2022-02-08 05:01:30 -05:00
Haojun Liao 0b4d01227b [td-11818] Refactor and add error check. 2022-02-08 15:40:13 +08:00
Haojun Liao c57e99e4c7 [td-11818] 1. Add orderby unit test; 2. refactor API; 2022-02-08 10:21:00 +08:00
Haojun Liao afd1ce63db [td-11818] Refactor API. 2022-01-28 10:44:02 +08:00
yihaoDeng 92bef71ec7 rename MAX/MIN/POW2/SWAP name 2022-01-24 12:53:17 +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 9ea9444b36 [td-11818] code refactor. 2022-01-14 10:20:55 +08:00
Hongze Cheng 9acdf1e975 take a commit 2021-12-24 15:00:51 +08:00
Shengliang Guan 6482b5175d TD-10431 func manage 2021-12-08 13:48:18 +08:00
Haojun Liao 28cd6afcef [td-10564] Fix bug in parse orderby clause. 2021-11-23 10:18:08 +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 8ba0780355 [td-10564] Fix bug in parse nest sql query. 2021-11-14 15:49:12 +08:00
Haojun Liao 6fedb60ec2 [td-10564] Add test case and fix bug in generated log query plan. 2021-11-10 18:53:22 +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 01b178eb0e [td-10564]refactor unary function. 2021-11-01 13:03:57 +08:00
Haojun Liao 5921993336 [td-10564] support unary scalar function. 2021-11-01 11:53:05 +08:00
Haojun Liao c7a7cf8730 [td-10564] add test planner. 2021-10-29 15:21:37 +08:00
Haojun Liao 86b6c42ce9 [td-10564] refactor and add test cases. 2021-10-29 11:22:23 +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 a531411e06 [td-10564] refactor and add test cases. 2021-10-26 17:39:37 +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