Commit Graph

160 Commits

Author SHA1 Message Date
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
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
Ganlin Zhao 485a1aedd5 fix(query): fix elapsed parameter number 2022-05-17 22:27:46 +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
Haojun Liao aefa9bd891 refactor: do some internal refactor. 2022-05-17 16:53:55 +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 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
Ganlin Zhao 9dcf9248d7 feat(query): add HYPERLOGLOG function 2022-05-16 22:43:06 +08:00
Ganlin Zhao ede4a57c99 enh(query): tail function handle offset param 2022-05-16 19:36:04 +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
Ganlin Zhao 3ef067ff03 feat(query): add tail function 2022-05-16 11:03:15 +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
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
Haojun Liao 86031c1985 fix(query): add the repeat scan flag check during aggregate executor. 2022-05-13 12:17:09 +08:00
Haojun Liao bc64bdc179 Merge branch '3.0' into feature/3.0_liaohj 2022-05-12 23:15:35 +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 818e3636d6 feat(query): add mavg function 2022-05-12 20:40:17 +08:00
Haojun Liao 4eaf1f5bb6 refactor: do some internal refactor. 2022-05-12 17:34:07 +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
Ganlin Zhao 71e43677f7 feat(query): add csum function 2022-05-12 14:38:56 +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
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
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
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
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
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
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 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 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 ea88da15db feat(query): add histogram function 2022-05-06 15:51:18 +08:00
Haojun Liao f096f27ce8 refactor: do some internal refactor. 2022-05-01 15:22:28 +08:00
Haojun Liao 3d931faa5b refactor(query): do some internal refactor. 2022-05-01 00:23:22 +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 d9490f8a8b finalize result buf location can be specified 2022-04-28 10:30:00 +08:00
Haojun Liao 199a3610f7 fix: fix some syntax errors. 2022-04-25 09:44:39 +08:00
Haojun Liao 5eed1159b1 other: merge 3.0 2022-04-25 09:16:37 +08:00
Ganlin Zhao 770be0364f Merge branch '3.0' into feature/3.0_glzhao 2022-04-24 20:15:26 +08:00
Haojun Liao 4b36763429 refactor(query): do some internal refactor. 2022-04-22 22:43:07 +08:00
Ganlin Zhao 05f1e64108 Merge branch '3.0' into feature/3.0_glzhao 2022-04-22 17:17:46 +08:00
Ganlin Zhao b96d372e81 feat(query): add avg function
TD-14295
2022-04-22 16:56:04 +08:00
Haojun Liao e28b75b8d4 refactor(query): do some internal refactor. 2022-04-22 15:07:20 +08:00
Haojun Liao 9a038322b6 refactor(query): do some internal refactor. 2022-04-21 17:44:08 +08:00
Haojun Liao e14142d114 refactor(query): do some internal refactor. 2022-04-21 13:57:32 +08:00
Haojun Liao b122538268 refactor: do some internal refactor. 2022-04-19 18:06:59 +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
Haojun Liao 2305b05869 refactor(query): do some internal refactor for executor. 2022-04-19 10:12:30 +08:00
Haojun Liao 902fcb0c0b refactor(query): refactor code. 2022-04-16 19:10:21 +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
Haojun Liao 5029cd67b2 ehn(query): add the file data block load optimization check. 2022-04-15 18:06:49 +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 74e5ebc322 fix[query]: enable min/max function to be applied to bool data type. 2022-04-11 19:50:34 +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
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
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 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
Haojun Liao 6f77eeccce [td-13039] support stddev. 2022-04-02 16:59:02 +08:00
Haojun Liao b5d011901e [td-14288] fix bug in first query. 2022-03-25 13:45:57 +08:00
Haojun Liao d82e66b7c2 [td-13039] merge 3.0 and fix bug. 2022-03-22 23:29:38 +08:00