Commit Graph

726 Commits

Author SHA1 Message Date
Haojun Liao 3f11c849cd refactor: do some internal refactor. 2022-07-15 17:34:54 +08:00
Haojun Liao 707f0a837a fix(query): set correct fill output object. 2022-07-14 20:11:29 +08:00
Haojun Liao 918df89b4f
Merge branch '3.0' into feature/3_liaohj 2022-07-14 17:56:15 +08:00
Xiaoyu Wang a497ad72fa
Merge pull request #14899 from taosdata/feature/3.0_debug_wxy
fix: some problems of planner
2022-07-14 17:31:50 +08:00
Haojun Liao dc4052bd7b fix(query): handle the grouped fill. 2022-07-14 17:04:22 +08:00
Xiaoyu Wang ddb39a8dc2 fix: some problems of planner 2022-07-14 16:06:28 +08:00
Haojun Liao fb49fd40cd fix(query):fix invalid write in sample query processing. 2022-07-14 10:44:35 +08:00
Haojun Liao 083de75afc fix(query):fix memory leak. 2022-07-13 23:15:58 +08:00
Haojun Liao 649cf7e55d fix(query): support last_row(tags) for super table query. 2022-07-13 14:21:44 +08:00
Haojun Liao 2c1efc3963 other: merge 3.0 2022-07-12 21:10:10 +08:00
Haojun Liao 6f2ac5ba72 fix(query): always generated results for last_row query if rows exists. 2022-07-12 21:07:12 +08:00
Hongze Cheng a67c8560a0
Merge pull request #14787 from taosdata/feat/row_refact
refact: row format
2022-07-12 20:45:02 +08:00
Hongze Cheng fefa18c0ec Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/row_refact 2022-07-12 11:57:02 +00:00
Ganlin Zhao c237f7f26b Merge branch '3.0' into fix/TD-17040 2022-07-12 19:48:29 +08:00
Ganlin Zhao ab31bdce35 fix(query): fix invalid read for setSelectivity
TD-17040
2022-07-12 19:44:04 +08:00
Haojun Liao 3ffc4e0dfd
Merge pull request #14820 from taosdata/feature/3_liaohj
fix(query): set correct number of result rows for taos_fetch_raw_block_a
2022-07-12 16:23:31 +08:00
Haojun Liao 24090f0fc3 refactor: do some internal refactor. 2022-07-12 15:30:38 +08:00
Ganlin Zhao fdf878c3e8 enh(query): agg function adoption for MIA operator
TD-17254
2022-07-12 14:31:16 +08:00
Ganlin Zhao 66f2835af1 enh(query): hyperloglog function adoption for MIA operator
TD-17254
2022-07-12 13:55:12 +08:00
Ganlin Zhao ba7d72c752 enh(query): first/last function adoption for MIA operator
TD-17254
2022-07-12 13:41:21 +08:00
Ganlin Zhao 7f875b5120 enh(query): elapsed function adoption for MIA operator
TD-17254
2022-07-12 11:38:28 +08:00
Ganlin Zhao ec4874f6b6 enh(query): spread function adoption for MIA operator
TD-17254
2022-07-12 11:30:14 +08:00
Ganlin Zhao 884b35928a enh(query): apercentile function adoption for MIA operator
TD-17254
2022-07-12 11:23:54 +08:00
Ganlin Zhao 487f1e0f52 enh(query): avg function adoption for MIA operator
TD-17254
2022-07-12 10:55:51 +08:00
Hongze Cheng 99702ff4ee Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/row_refact 2022-07-12 02:16:35 +00:00
Hongze Cheng 9d0563df3e more row refact 2022-07-11 12:54:44 +00:00
Ganlin Zhao b9795fab95 fix(query): histogram function interval query for super table
missed some child table records.

TD-17021
2022-07-11 19:49:48 +08:00
Haojun Liao 69e9a2ad5c
Merge branch '3.0' into feature/3_liaohj 2022-07-10 14:46:53 +08:00
Haojun Liao 3ee9d160d9 fix(query): set correct stddev merge input rows. 2022-07-10 11:02:54 +08:00
WANG MINGMING 30b1af3feb
Merge pull request #14700 from taosdata/feature/TD-13041
feat:write meta from tmq to taosd
2022-07-10 10:22:51 +08:00
wangmm0220 6b46423a97 feat:write meta from tmq to taosd 2022-07-08 18:37:47 +08:00
Haojun Liao 211985f03e refactor: do some internal refactor. 2022-07-07 17:23:54 +08:00
Haojun Liao d9e5172357 fix(query): set the correct sma data 2022-07-07 15:32:56 +08:00
Haojun Liao 29949a965b other: merge 3.0. 2022-07-06 13:46:24 +08:00
Haojun Liao 15d8ae0fee other: merge 3.0 2022-07-05 19:22:50 +08:00
Ganlin Zhao 085ef7da87 fix(query): stddev function support unsigned data types 2022-07-05 11:23:47 +08:00
Ganlin Zhao f200c03b52 fix(query): stddev function support unsigned data types 2022-07-05 11:19:25 +08:00
Ganlin Zhao 1e7d94c291 fix(query): avg function support unsigned data type
TD-16877
2022-07-04 20:39:20 +08:00
Ganlin Zhao 9f529b7d3b fix(query): avg function support unsigned data type
TD-16877
2022-07-04 20:34:46 +08:00
Hongze Cheng ddb198de23 Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/tsdb_refact 2022-07-04 03:42:50 +00:00
Xiaoyu Wang 7a53bae352 merge 3.0 2022-07-01 20:05:15 +08:00
wangmm0220 4e6b3d72ac Merge branch '3.0' into feature/TD-13041 2022-07-01 16:54:18 +08:00
Xiaoyu Wang 129c9251bd fix: csum/diff/mavg support subquery 2022-07-01 15:01:37 +08:00
Xiaoyu Wang e235c9830d merge 3.0 2022-07-01 13:35:07 +08:00
Xiaoyu Wang 8a8939f99c fix: csum/diff/mavg support subquery 2022-07-01 13:31:22 +08:00
Ganlin Zhao e38e23a3ec fix error 2022-06-30 17:45:55 +08:00
Ganlin Zhao 0b9358583c Merge branch '3.0' into enh/last_row_function 2022-06-30 17:33:07 +08:00
Ganlin Zhao 860bf88f31 feat(query): add last_row function without cache
TD-16927
2022-06-30 17:20:04 +08:00
wangmm0220 e751e20c76 fix:merge from 3.0 2022-06-30 16:25:43 +08:00
Ganlin Zhao ee47df9c2a fix(query): support irate function for ms/ns precision db 2022-06-30 13:46:28 +08:00
Ganlin Zhao 63d799feeb refactor(query): set stateduration function default time unit as db
precision
2022-06-30 11:32:00 +08:00
wangmm0220 06552626e0 fix:disable some json test cases 2022-06-29 20:15:49 +08:00
Ganlin Zhao 9e75569870 refactor(query): function adoption to us/ns db precision
TD-16436
2022-06-29 19:48:37 +08:00
wangmm0220 3725adc861 fix:merge from 3.0 2022-06-29 18:45:34 +08:00
wangmm0220 665e1ddde8 fix:add switch for buffer page debug log 2022-06-29 18:11:28 +08:00
wangmm0220 95f5d7695d fix:core dump in top/bottom with group by tag if tag is big size and flush/get from disk with page buffer & fix _group_by key function heap overflow 2022-06-29 18:05:09 +08:00
wangmm0220 873546bee5 fix:add log 2022-06-29 15:03:17 +08:00
Ganlin Zhao e9fba684de fix mem leak 2022-06-29 10:17:30 +08:00
Haojun Liao 5efd5a3b6d fix(query):adjust api for retrieve lastrow in executor. 2022-06-28 23:24:20 +08:00
Ganlin Zhao c3d26dc73e feat(query): enable selectivity with first/last for stable 2022-06-28 20:46:45 +08:00
Ganlin Zhao 9ca819aa69 enh(query): last function support selectivity 2022-06-28 16:44:16 +08:00
Ganlin Zhao 0ea8f0fbc6 enh(query): fisrt function support selectivity 2022-06-28 15:14:57 +08:00
Ganlin Zhao 4d05053e66 fix(query): add mode function 2022-06-28 10:42:10 +08:00
wangmm0220 b6b4455689 fix:error in group by tag 2022-06-27 21:21:08 +08:00
Ganlin Zhao f9e80a8e2b fix(query): add mode function 2022-06-27 19:41:13 +08:00
Ganlin Zhao 37d1cc28a6 refactor(query): refactor _group_key function 2022-06-25 10:43:06 +08:00
Ganlin Zhao 5c3fae340e add NULL logic for _group_key 2022-06-24 20:26:46 +08:00
Ganlin Zhao f8bb36ce2c enh(query): add _group_key function for partion by
TD-16805
2022-06-24 20:08:07 +08:00
Ganlin Zhao b1b7974e07
Merge pull request #14152 from taosdata/fix/TD-16762
fix(query): avg/stddev divide 0 handling
2022-06-23 20:23:37 +08:00
Ganlin Zhao df1f4cc53f fix compilation error 2022-06-23 19:34:10 +08:00
Ganlin Zhao d5a27d50e3 fix(query): avg/stddev divide 0 handling
TD-16762
2022-06-23 14:14:23 +08:00
Ganlin Zhao cfad058333 fix(query): avg/stddev divide 0 handling
TD-16762
2022-06-23 14:11:30 +08:00
Ganlin Zhao 044f27bbca fix(query): avg/stddev divide 0 handling
TD-16762
2022-06-23 13:58:36 +08:00
Haojun Liao ecc05bf75c fix(query): check pointer before use it. 2022-06-22 21:12:08 +08:00
Haojun Liao 5c1e7f3114 Merge branch '3.0' into feature/3_liaohj 2022-06-22 17:23:57 +08:00
Haojun Liao 14ddf539e0 refactor(query): do some internal refactor. 2022-06-22 17:21:04 +08:00
Ganlin Zhao 220f8004f8 Merge branch '3.0' into feat/irate_function 2022-06-22 15:37:49 +08:00
Ganlin Zhao 767eefea0c fix irate first_value bugs 2022-06-22 15:08:41 +08:00
Ganlin Zhao d2059e8079 feat(query): add irate function 2022-06-22 14:42:05 +08:00
Ganlin Zhao bae7143865 Merge branch '3.0' into fix/TD-16394 2022-06-21 19:23:39 +08:00
Ganlin Zhao a46abd974b fix(query): fix leastsquares function random result when input is
tinyint

TD-16394
2022-06-21 19:22:38 +08:00
Ganlin Zhao 3fc7fa3b3a feat(query): add sample function work with selectivity 2022-06-21 14:34:28 +08:00
Ganlin Zhao 578dd9b75b Merge branch '3.0' into fix/TD-16561 2022-06-20 16:13:33 +08:00
Ganlin Zhao 63a917581d fix(query): select last(*) from super table returns 0 if all columns
are NULL.

TD-16561
2022-06-20 16:11:42 +08:00
Haojun Liao a2cec0e488
Merge pull request #14004 from taosdata/feature/3_liaohj
feature(query): support show table block distribution.
2022-06-20 15:13:10 +08:00
Ganlin Zhao 3e79defdad
Merge pull request #14003 from taosdata/refactor/top_bot_refact
refactor: refactor top/bottom function and selectivity
2022-06-20 14:53:20 +08:00
Ganlin Zhao 0ad4c6ca6d remove unused code 2022-06-20 13:33:44 +08:00
Ganlin Zhao 02cb6dc412 refactor(query): top/bot function refactor 2022-06-20 13:22:00 +08:00
liuyao 3a0c1ada41
Merge pull request #13996 from taosdata/feature/TD-16616
feat(stream): add ci
2022-06-20 13:05:44 +08:00
Ganlin Zhao 3969c00187
Merge pull request #13997 from taosdata/fix/TD-16656
fix(query): fix stddev function floating point NaN value
2022-06-20 12:54:58 +08:00
Haojun Liao 659e429b87 feature(query): support show table block distribution. 2022-06-20 12:54:46 +08:00
54liuyao 5301dece4e feat(stream): add ci 2022-06-20 11:35:05 +08:00
Ganlin Zhao a79f4a6ec7 fix(query): fix stddev function floating point NaN value
TD-16656
2022-06-20 11:25:54 +08:00
Xiaoyu Wang 04e9996db6 feat: the function manager adds an interface for manually configuring the parameters of the merge function 2022-06-18 20:52:42 +08:00
Haojun Liao cc638a2236 fix(query): set null for null value in groupby 2022-06-16 21:13:18 +08:00
Haojun Liao efd28728df
Merge pull request #13779 from taosdata/feature/3_liaohj
enh(query): add derivative function.
2022-06-15 22:35:30 +08:00
Haojun Liao b9e98b42cd fix(query): set correct timeunit. 2022-06-15 18:13:43 +08:00
Ganlin Zhao f445c59aa0
Merge pull request #13855 from taosdata/fix/last_windows_crash
fix(query): fix first/last function crash on windows
2022-06-15 17:00:16 +08:00
Haojun Liao 771065952e other: merge 3.0 2022-06-15 16:32:28 +08:00
54liuyao d8c2a68f27 feat(stream): update data fo partition by 2022-06-15 15:35:51 +08:00
Ganlin Zhao 8a1d0812fe fix last function crash on windows 2022-06-15 13:22:36 +08:00
Ganlin Zhao 68d33b1656 add stddev function partial/merge 2022-06-14 16:53:59 +08:00
Ganlin Zhao cd94eabc73 add stddev function translate partial/merge 2022-06-14 16:42:05 +08:00
Ganlin Zhao a17c6e3c33 fix bugs 2022-06-14 15:47:56 +08:00
Ganlin Zhao e82289542d avg function add partial/merge 2022-06-14 15:15:37 +08:00
Ganlin Zhao 4113472e89 add avg function translate partial/merge 2022-06-14 15:00:28 +08:00
Ganlin Zhao 2a6dfbb0d7 enh(query): avg function use pre-agg results 2022-06-14 13:48:33 +08:00
Haojun Liao 531b85ce22 enh(query): add interp function. 2022-06-14 11:54:13 +08:00
Ganlin Zhao 0dde9cc9f9 fix bugs 2022-06-14 11:25:11 +08:00
Ganlin Zhao 6a4fc45771 fix bugs 2022-06-14 11:00:22 +08:00
Ganlin Zhao 9fa641a8b0 Merge branch '3.0' into enh/first_last_split 2022-06-14 10:50:50 +08:00
Ganlin Zhao d4a38245a2 add some check 2022-06-13 21:21:46 +08:00
Ganlin Zhao 4240a38c17 fix bugs 2022-06-13 20:56:33 +08:00
Ganlin Zhao 45ef3db78a add first function partial/merge 2022-06-13 20:53:42 +08:00
Haojun Liao 4b9139c793
Merge branch '3.0' into feature/3_liaohj 2022-06-13 19:35:27 +08:00
Haojun Liao 7f0c2d5b80 enh(query): support descending traverse in derivative function. 2022-06-13 19:31:17 +08:00
Haojun Liao 49fd380a69 enh(query): add derivative function. 2022-06-13 19:22:28 +08:00
Ganlin Zhao 6d95262688 enh(query): add first/last function distributed implementation 2022-06-13 19:11:28 +08:00
Xiaoyu Wang 9d9c05ccb5 merge 3.0 2022-06-13 18:40:23 +08:00
Xiaoyu Wang a5ce5192f2 merge 3.0 2022-06-13 18:37:25 +08:00
Ganlin Zhao b4c3e55c4d Merge branch '3.0' into enh/top_bot_split 2022-06-13 16:18:39 +08:00
Ganlin Zhao f7c20f6c0d fix invalid read-write caused by getFuncEnv 2022-06-13 16:14:16 +08:00
Xiaoyu Wang 1863bbee9a merge 3.0 2022-06-13 15:01:29 +08:00
Xiaoyu Wang 380a071551 fix: handle the memory leak of parser 2022-06-13 14:54:38 +08:00
Ganlin Zhao 4036d9714e add bottom function distribution splitting 2022-06-13 13:38:21 +08:00
Ganlin Zhao ca22215718 Merge branch '3.0' into enh/top_bot_split 2022-06-13 12:41:27 +08:00
Ganlin Zhao 8fe95c982c fix bugs 2022-06-13 12:39:25 +08:00
Haojun Liao 13907386fb
Merge branch '3.0' into feature/3_liaohj 2022-06-13 10:32:56 +08:00
Haojun Liao d77979babf
Merge pull request #13747 from taosdata/feature/3_liaohj
fix(query): add more check for timestamp in converting.
2022-06-12 11:31:29 +08:00
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 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
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
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 e9a8217f97 fix getTopBotInfoSize issue 2022-06-11 15:44:55 +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 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
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
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 d2efa06742 add elapsed function merge/partial functions 2022-06-09 19:49:29 +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 20b1ee6160 fix bugs 2022-06-09 14:21:27 +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 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 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 e4216bbc87 fix bugs 2022-06-08 16:35:45 +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 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 12f4bc3c90 refactor 2022-06-07 11:45:55 +08:00
Ganlin Zhao 5d543449c9 enh(query): add distributed splitting of aggregate function
TD-16321
2022-06-07 11:23:19 +08:00
54liuyao 5400507245 feat(stream): stream state operator 2022-06-04 20:36:28 +08:00
Haojun Liao f1bcfb309d fix(query): set null for empty min/max 2022-06-03 11:14:30 +08:00
Liu Jicong 77fe6a4ef7
Merge branch '3.0' into feature/3_liaohj 2022-06-02 15:05:49 +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
Haojun Liao cca327190d fix(query): restore some remove attributes. 2022-05-31 17:46:35 +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 a7feca23fe other: merge 3.0 2022-05-30 23:32:00 +08:00
Haojun Liao 70927458e5 refactor(query): do some internal refactor. 2022-05-30 20:10:30 +08:00
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 75f2d3952a fix(query): apercentile algo string should not include var header 2022-05-28 14:47:13 +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 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 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 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 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
54liuyao 0778bf8857 stream session operator 2022-05-25 09:05:03 +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
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 3d34f7850e fix(query): change unique function type to non-standard sql function 2022-05-20 13:59:20 +08:00
Ganlin Zhao bf4826d9a8 feat(query): add unique function 2022-05-19 22:42:30 +08:00
Ganlin Zhao 8daaea58de feat(query): fix ci 2022-05-18 18:51:40 +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
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
Haojun Liao 3a6be84b80 [td-13039] support group by. 2022-03-22 18:17:04 +08:00
Haojun Liao 5533875326 [td-13039] support group by. 2022-03-22 16:03:42 +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
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 309076de1f [td-13039] add first/last query. 2022-03-11 14:11:34 +08: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
Haojun Liao 459b0ef442 [td-13039] refactor. 2022-03-09 10:22:53 +08:00