Commit Graph

415 Commits

Author SHA1 Message Date
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