Commit Graph

762 Commits

Author SHA1 Message Date
Shengliang Guan d5126d469a refact: replcase ASSERT with tAssert 2022-12-07 18:42:48 +08:00
Shengliang Guan f69a188f7e refact: replcase ASSERT with tAssert 2022-12-07 18:37:40 +08:00
dapan1121 5b8294122a
Merge pull request #18742 from taosdata/fix/TD-20906
fix: fix count VAR type column error cause of reading incorrect sma results
2022-12-06 18:41:24 +08:00
Ganlin Zhao 2cc58eebd3 fix: fix count VAR type column error cause of reading
incoorect sma results
2022-12-06 00:29:38 -08:00
54liuyao d7a38aeae9 fix:stddev\fisrt\last combine function 2022-12-05 17:21:40 +08:00
dapan1121 45cf5acc32
Merge pull request #18501 from taosdata/fix/TS-2149
fix(query): handle countAlwaysReturnValue behavior
2022-11-30 13:20:51 +08:00
Ganlin Zhao f913fbdaf6 fix errors 2022-11-29 22:14:46 +08:00
Ganlin Zhao 900fe01f0e fix error 2022-11-29 19:32:51 +08:00
Ganlin Zhao 682b3b60ef Merge branch '3.0' into fix/TS-2149 2022-11-28 23:42:16 +08:00
Ganlin Zhao 8c90a98e2d fix last_row 2022-11-28 22:25:17 +08:00
Ganlin Zhao f81ce17df4 fix first last 2022-11-28 22:06:02 +08:00
Ganlin Zhao bab891eef7 fix coverity scan issue CID:402965 2022-11-28 18:14:47 +08:00
Ganlin Zhao 99604f8010 fix: [ASAN] stack buffer overflow 2022-11-28 18:06:34 +08:00
Ganlin Zhao 8fba0b631c Merge branch '3.0' into fix/TS-2149 2022-11-28 01:02:57 +08:00
Ganlin Zhao ab86b6ba47 fix hyperloglog bugs 2022-11-28 00:30:39 +08:00
Haojun Liao b0ee829db2 refactor: do some internal refactor. 2022-11-28 00:27:49 +08:00
Haojun Liao 7fe4cf7bbe
Merge branch '3.0' into feature/3_liaohj 2022-11-25 22:24:59 +08:00
Ganlin Zhao f122d98bb4 fix: [ASAN] null pointer issue in builtinsimpl.c 2022-11-25 15:29:52 +08:00
Haojun Liao 9a208b2d09 other: merge 3.0 2022-11-24 17:08:15 +08:00
Ganlin Zhao 0e64614ce8 fix: [ASAN] offset on null pointer error 2022-11-23 12:03:58 +08:00
Haojun Liao 7c7b2f1cef fix(query): fix memory leak. 2022-11-22 18:06:01 +08:00
Xiaoyu Wang 4217441cad Merge remote-tracking branch 'origin/3.0' into fix/3.0_bugfix_wxy 2022-11-17 16:25:18 +08:00
Xiaoyu Wang 7cda5c2752 enh: fill value supports implicit type conversion 2022-11-17 16:24:56 +08:00
Xiaoyu Wang dc0d3745a7 enh: fill value supports implicit type conversion 2022-11-17 15:48:42 +08:00
54liuyao 00937a7fc8 fix:[ASAN] src/builtinsimpl.c:1084:41: runtime error: division by zero 2022-11-17 09:06:22 +08:00
Shengliang Guan 624cd48b58
Merge pull request #18209 from taosdata/enh/function
enh: check function state
2022-11-16 22:11:11 +08:00
Liu Jicong a0e22ca681 enh: check function state 2022-11-16 17:14:02 +08:00
Ganlin Zhao cf601b206f fix(query): ASAN heap buffer overflow
TD-20454
2022-11-16 15:00:57 +08:00
Ganlin Zhao aae3475900 fix(query): ASAN heap buffer overflow
TD-20454
2022-11-16 14:36:51 +08:00
Shengliang Guan 4b4f8eac86
Merge pull request #18184 from taosdata/fix/TD-20403
fix(query): fix signed integer overflow in builtinsimpl.c
2022-11-16 09:42:44 +08:00
Ganlin Zhao bf7ad8e85e fix(query): fix signed integer overflow in builtinsimpl.c
TD-20403
2022-11-15 18:51:55 +08:00
dapan1121 49a3623f1a
Merge pull request #18112 from taosdata/fix/TD-19892
fix(query): report error if certain function query stable has duplicate timestamps
2022-11-15 17:24:08 +08:00
Haojun Liao c888cbf068 refactor: do some internal refactor. 2022-11-14 14:14:24 +08:00
Shengliang Guan 49245efff4 fix: runtime error (division by zero in builtinsimpl.c) 2022-11-14 10:35:46 +08:00
Cary Xu a7e197d2cb fix(query): sum/min/max/avg query of float type from block sma 2022-11-13 01:54:46 +08:00
Ganlin Zhao 2b53f7be84 fix(query): report error if certain function query stable has duplicate
timestamps

TD-19892
2022-11-11 16:43:45 +08:00
Ganlin Zhao eec1b0bfb0 fix(query): report error if certain function query stable has duplicate
timestamps

TD-19892
2022-11-11 16:22:31 +08:00
Ganlin Zhao 1cba568604 fix(query): report error if certain function query stable has duplicate
timestamps

TD-19892
2022-11-11 15:22:00 +08:00
Haojun Liao ea83ae239e refactor: do some internal refactor. 2022-11-10 18:58:10 +08:00
Haojun Liao 9f5cf450de refactor: do some internal refactor. 2022-11-10 15:37:18 +08:00
Haojun Liao 2402fd1d48 refactor: do some internal refactor. 2022-11-09 19:14:27 +08:00
Haojun Liao 3f62f14cee refactor: do some internal refactor. 2022-11-09 16:54:33 +08:00
Haojun Liao fa45cd2ce8 enh(query): unfold the loop. 2022-11-09 15:50:31 +08:00
Haojun Liao 411371ba48 refactor: do some internal refactor. 2022-11-09 14:16:21 +08:00
Haojun Liao 459bed5f86 enh(query): improve the query perf. 2022-11-09 10:41:53 +08:00
Haojun Liao 0c427b5f5b refactor: do some internal refactor. 2022-11-09 10:39:32 +08:00
Haojun Liao e3aabacf9a fix(query): fix error in min/max functions. 2022-11-09 09:47:21 +08:00
Haojun Liao d238f387ce other: merge 3.0 2022-11-09 00:00:14 +08:00
Haojun Liao dc2c419f22 enh(query): optimize the query perf. 2022-11-08 19:01:35 +08:00
Haojun Liao ecf3e2c000 enh(query): optimize the perf. 2022-11-08 18:44:28 +08:00
Haojun Liao 6e1a2b1e54 enh(query): improve the perf. 2022-11-08 17:38:09 +08:00
Haojun Liao f85d66f5ee enh(query): opt query perf. 2022-11-08 16:59:00 +08:00
Haojun Liao b0a54d3fab enh(query): improve the perf. 2022-11-08 14:54:42 +08:00
Haojun Liao 032208e36a enh(query): optimize the query perf. 2022-11-08 14:01:29 +08:00
Haojun Liao 2621dec4ae enh(query): improve the perf. 2022-11-08 12:02:44 +08:00
dapan1121 b5ab7eaf5e
Merge pull request #17891 from taosdata/fix/TD-19906
fix(query): add mode with selectivity rows
2022-11-08 09:36:21 +08:00
dapan1121 888616f321
Merge pull request #17876 from taosdata/fix/TD-20140
fix(query): fix countAlwaysReturnValue param not taking effect for count and hyperloglog
2022-11-07 09:25:15 +08:00
Haojun Liao e3d0bc6bf7 other: merge 3.0. 2022-11-06 11:37:21 +08:00
Haojun Liao 03f4918b3b refactor: do some internal refactor. 2022-11-04 18:46:48 +08:00
Ganlin Zhao 1204faefb6 fix: fix memory leak 2022-11-04 16:15:37 +08:00
Ganlin Zhao a0e13e04fe fix(query): add mode with selectivity rows 2022-11-03 18:27:43 +08:00
Ganlin Zhao 0b3a3aff21 fix hll tsCountAlwaysReturnValue not working 2022-11-03 15:01:52 +08:00
Ganlin Zhao 5fffeba2f3 fix(query): fix countAlwaysReturnValue param not taking effect for
count and hyperloglog function

TD-20140
2022-11-03 10:39:53 +08:00
54liuyao 43918a27f9 fix(function):if data is null, apercentile function should return null 2022-11-02 16:37:23 +08:00
Ganlin Zhao 6667f69146 fix address sanitizer divide by zero error
TD-20116
2022-11-02 10:27:00 +08:00
dapan1121 8f95861d61
Merge pull request #17793 from taosdata/fix/TD-19891
fix(query): leastsquares handles unsigned types
2022-11-01 15:54:35 +08:00
Haojun Liao c17a921a03 fix(query): set the correct buffer to accommodate the tag values. 2022-10-31 23:19:40 +08:00
Ganlin Zhao 63aa6f7a47 fix(query): leastsquares handles unsigned types
TD-19891
2022-10-31 15:20:20 +08:00
54liuyao 7d8a282258 fix(stream):tqBuildDeleteReq error 2022-10-28 11:19:26 +08:00
Ganlin Zhao c3362223d9 fix(query): comment out unsed functions for code coverage 2022-10-26 13:39:56 +08:00
Ganlin Zhao 28689c508a remove unused code 2022-10-25 16:45:00 +08:00
Ganlin Zhao d03058aff8 fix coverity 2022-10-25 12:54:10 +08:00
Ganlin Zhao 3a4dc8f0da Merge branch '3.0' into fix/coverity_glzhao 2022-10-25 09:47:46 +08:00
Ganlin Zhao 585577cef3 fix: coverity issues
CID: 399989
2022-10-24 19:28:36 +08:00
Ganlin Zhao cd0a051157 fix: coverity issues
CID: 399671
2022-10-24 19:16:53 +08:00
Haojun Liao 6ebf6b29bd fix(query): fix coverity issues. 2022-10-23 15:20:29 +08:00
Haojun Liao abff4fb1f2
Merge pull request #17336 from taosdata/feature/3_liaohj
other:merge 3.0, and support last query cache
2022-10-20 18:15:38 +08:00
Shengliang Guan 36467958d4
Merge pull request #17514 from taosdata/fix/TD-19601
fix(query): fix crash if block SMA is set and real data is not loaded.
2022-10-20 16:39:58 +08:00
Ganlin Zhao 4ff9ab7fc2 fix(query): fix crash if block SMA is set and real data is not loaded.
TD-19601
2022-10-20 14:23:30 +08:00
Ganlin Zhao b9d4718c64 fix(query): fix crash if block SMA is set and real data is not loaded.
TD-19601
2022-10-20 14:19:20 +08:00
Shengliang Guan 097a047b61 Merge remote-tracking branch 'origin/3.0' into FIX/TD-19593-3.0 2022-10-19 20:08:49 +08:00
Shengliang Guan 308dd56537
Merge pull request #17486 from taosdata/fix/liao_cov
refactor: remove redundant codes.
2022-10-19 19:51:59 +08:00
Haojun Liao 5dcfaf3bd6 refactor: remove redundant codes. 2022-10-19 18:00:15 +08:00
Benguang Zhao 2aa7afe7fa Merge branch '3.0' into FIX/TD-19593-3.0 2022-10-19 16:31:13 +08:00
Haojun Liao f7fdeecc44
Merge branch '3.0' into feature/3_liaohj 2022-10-19 11:23:55 +08:00
Shengliang Guan 7cdfade1ae
Merge pull request #17442 from taosdata/fix/TD-19443-V30
fix(query): improve performance for first function x10 quickly
2022-10-19 10:06:55 +08:00
Benguang Zhao 00a066443f Merge branch '3.0' into FIX/TD-19593-3.0 2022-10-19 09:38:36 +08:00
Benguang Zhao 3b0968d7f9 enh: enable the -Wformat=2 compiler option 2022-10-19 09:24:15 +08:00
Shengliang Guan 5cd1c12c4b
Merge pull request #17448 from taosdata/fix/TD-19619
fix(query): mode function output behavior if there're multiple highest frequency of occurrence.
2022-10-19 09:06:43 +08:00
Ganlin Zhao 2d1f7354a9 fix null value handling 2022-10-18 19:11:49 +08:00
54liuyao 8efd7e8763 feat(stream):replace disk buff 2022-10-18 18:13:47 +08:00
Ganlin Zhao 0f5e02b0b4 fix(query): mode function output one random result instead of NULL
if there're multiple highest frequency of occurrence.

TD-19619
2022-10-18 17:52:40 +08:00
Alex Duan e2637ab6a7 fix(query): improve performance for first function x10 quickly 2022-10-18 17:22:41 +08:00
Haojun Liao c8b180b129 fix(query): update the cached last query. 2022-10-17 19:14:06 +08:00
Haojun Liao da9df99461 fix(query): opt last query. 2022-10-17 17:59:43 +08:00
Hongze Cheng 329b750701
Revert "enh(query): opt group by tag perf." 2022-10-15 16:14:50 +08:00
Haojun Liao aa04aee7fd enh(query): opt group by tag perf. 2022-10-14 18:49:19 +08:00
Hongze Cheng c4b3da5032 more code format 2022-10-13 14:15:42 +08:00
Ganlin Zhao 16804ed711 fix(query): fix inconsistent max value caused by data conversion
when reading from sma.
2022-10-08 18:48:49 +08:00
Ganlin Zhao 3abf6abad6 fix(query): fix group_key output mismatch with multiple rows output functions
TD-19273
2022-09-29 17:02:16 +08:00
slzhou b880d460ec fix: correct rowindex is used to retrieve selectivity values from source block when first/last function merge 2022-09-26 11:46:19 +08:00
Ganlin Zhao 8f2e385989 Merge branch '3.0' into fix/TD-18385 2022-09-23 17:43:12 +08:00
Ganlin Zhao 3278b2ccaa fix(query): incorrect result for max(float) 2022-09-23 16:38:24 +08:00
54liuyao 3a21da6e46 fix(stream): data block capacity and function byte 2022-09-22 15:54:44 +08:00
Ganlin Zhao b08288df48 fix(query): fix invalid read in doModeAdd
TD-19124
2022-09-19 17:07:22 +08:00
dapan1121 cd015bae83 fix: fix stateduration result error 2022-09-14 19:02:26 +08:00
Liu Jicong 3bedc3fa3b
Merge pull request #16836 from taosdata/feature/stream
feat(stream): stream state support tuple
2022-09-14 17:47:47 +08:00
Liu Jicong 4c6a8bbc95 feat(stream): stream state support tuple 2022-09-14 16:50:42 +08:00
Shengliang Guan 59e9140996
Merge pull request #16806 from taosdata/fix/TD-18224
fix(query): twa function report error if input has overlap timestamps
2022-09-14 15:52:20 +08:00
Ganlin Zhao 0a6ec7c0d7 fix(query): restrict max/min function input type not including timestamp
type
2022-09-14 11:17:12 +08:00
Ganlin Zhao 5463159a3d fix twa function input dup timestamps 2022-09-13 18:24:29 +08:00
Ganlin Zhao 6b2bf42f68 fix(query): twa function output NULL if input has overlap timestamps
TD-18224
2022-09-13 18:05:54 +08:00
Ganlin Zhao 0d7e1eb4e0 fix(query): twa function output NULL if input has overlap timestamps
TD-18224
2022-09-13 16:45:40 +08:00
dapan1121 582f44c2fd fix: fix statecount result error 2022-09-07 18:52:54 +08:00
slzhou 84f79e8df2 fix: save selectivity value for first/last even column consists of all null values 2022-09-06 15:48:08 +08:00
Liu Jicong 004a84ac81 fix memory leak 2022-09-02 16:41:32 +08:00
Ganlin Zhao 4f772ee711 Merge branch '3.0' into fix/TD-16780 2022-09-01 11:28:28 +08:00
Ganlin Zhao c49aa8e1f9 fix(query): support timestap type in max/min function
TD-16780
2022-08-31 18:51:29 +08:00
Shengliang Guan 4401080328 enh: make cmake .. -DCMAKE_BUILD_TYPE=Release work 2022-08-31 18:06:17 +08:00
Haojun Liao e5f5d3710d fix(query): set correct value length 2022-08-30 12:48:06 +08:00
Haojun Liao d338e4dc60 fix(query): set correct length value. 2022-08-30 10:38:32 +08:00
Haojun Liao ba8b10e27b refactor(query): do some internal refactor. 2022-08-29 18:47:46 +08:00
Haojun Liao 60d9acb7b4 feature(query): support last function cache and retrieve data. 2022-08-26 15:27:19 +08:00
Haojun Liao 1c06206000 other:merge 3.0 2022-08-25 11:01:36 +08:00
Haojun Liao 38b30d071e fix(query): fix errors. 2022-08-21 00:02:43 +08:00
Ganlin Zhao 9ef2d73689 fix(query): fix elapsed order by ts desc result inconsist after flush
to disk

TD-18453
2022-08-18 16:06:49 +08:00
slzhou 3f3c1b9e8d Merge branch '3.0' of github.com:taosdata/TDengine into szhou/fixbugs 2022-08-16 16:45:42 +08:00
Ganlin Zhao e4f9a41f4d fix(query): fix sample with partition by invalid pageId cause crash
issue

TD-17499
2022-08-16 15:03:20 +08:00
“happyguoxy” 25f5b0435e fix: fix type conversion for max/min function 2022-08-16 14:45:42 +08:00
54liuyao c10a1adbd3 feat(stream):delete window 2022-08-11 16:33:35 +08:00
slzhou 9891f78961 fix: can not clear result info when in stream computing 2022-08-11 09:43:03 +08:00
shenglian-zhou d9621d0f09
Merge pull request #15942 from taosdata/szhou/fixbug
fix: return init agg failure when create operators to avoid coredump
2022-08-11 07:54:42 +08:00
Haojun Liao d8455841e0 refactor: do some internal refactor. 2022-08-10 20:12:32 +08:00
slzhou 668a78a79f fix: fix histogram not setting content when process all null columns 2022-08-10 18:02:43 +08:00
Xiaoyu Wang 07ef00e89f merge 3.0 2022-08-09 11:36:08 +08:00
Haojun Liao 4d8842c21f other:merge 3.0 2022-08-08 16:37:37 +08:00
slzhou e9f79254fb fix: merge spread into output when input spread has result 2022-08-08 15:23:55 +08:00
slzhou 580b2e587b fix: set selectivity value for the null group 2022-08-06 14:29:12 +08:00
slzhou b2c8d2161f fix: all null value group with all null out 2022-08-06 10:47:15 +08:00
Haojun Liao 3a5fcefc8d other: merge 3.0 2022-08-04 17:24:51 +08:00
Haojun Liao 3566e8cf46 enh(query): diff support timestamp column type. 2022-08-04 15:02:05 +08:00
Haojun Liao c253ea73e1 fix(query): fix the null not returns problem. 2022-08-03 19:17:07 +08:00
Ganlin Zhao 479367207b fix(query): add interp param check
TD-18113
2022-08-03 18:58:47 +08:00
Ganlin Zhao 4601fd0bfd Merge branch '3.0' into fix/TD-18010 2022-08-02 15:37:29 +08:00
Ganlin Zhao b323d508e6 fix(query): fix apercentile crash in stream concurrent insert
TD-18010
2022-08-02 15:34:33 +08:00
Ganlin Zhao 081695668d refactor apercentile logs 2022-08-02 15:33:41 +08:00
Ganlin Zhao 30ab3a1bb2
Merge pull request #15647 from taosdata/fix/TD-17799
fix(query): fix apercentile crash when result is 0 rows and used with other non-null result functions
2022-08-01 19:07:56 +08:00
Ganlin Zhao 0dbe26f8bb fix(query): fix apercentile crash when input is all null columns and used
with other non-null result functions

TD-17799
TD-17967
2022-08-01 17:41:27 +08:00
Ganlin Zhao 3ebd338097 enh(query): add selectivity support for mavg functions
TD-18050
2022-08-01 15:41:05 +08:00
Ganlin Zhao 62407b9e9f enh(query): add selectivity support for csum functions
TD-18050
2022-08-01 15:33:38 +08:00
Ganlin Zhao b4fa0d61b4 enh(query): add selectivity support for statecount/stateduration
functions

TD-18050
2022-08-01 15:16:29 +08:00
Haojun Liao 9ee13ca254 other: merge 3.0 2022-07-29 18:03:42 +08:00
Haojun Liao 78bbfcb4bc refactor: do some internal refactor and opt query performance. 2022-07-29 09:56:03 +08:00
Ganlin Zhao b4a8408030 fix(query): fix max/min/sum null input output behavior to 0 rows 2022-07-28 11:41:05 +08:00
Ganlin Zhao c0091afb01 Merge branch '3.0' into enh/TD-17659 2022-07-26 21:05:34 +08:00
Ganlin Zhao 63d8057ade Merge branch '3.0' into enh/TD-17659 2022-07-26 20:23:13 +08:00
Ganlin Zhao 320525edf9 fix(query): fix max/min with null input 2022-07-26 20:20:39 +08:00
Ganlin Zhao 2dc24b2692 fix(query): fix max/min with null input 2022-07-26 20:14:22 +08:00
Ganlin Zhao 2884b36d5f fix(query): fix sum(null) or sum(nullexpr) result to null 2022-07-26 20:07:28 +08:00
shenglian-zhou fd2a53d174
Merge pull request #15415 from taosdata/szhou/fix/udf
fix: set null when all inputs are null for leastsquare function
2022-07-26 15:57:25 +08:00
shenglian zhou 662a9997c1 fix: set null when all inputs are null for leastsquare function 2022-07-26 10:39:58 +08:00
Ganlin Zhao e8da4f429c enh(query): add derivative function selectivity
TD-17659
2022-07-25 16:04:28 +08:00
Ganlin Zhao 8537449f90 fix diff function selectivity output index 2022-07-25 15:54:36 +08:00
Ganlin Zhao db48f118a1 enh(query): add selectivity for diff function
TD-17659
2022-07-25 15:34:46 +08:00
Ganlin Zhao 168340da8d
Merge pull request #15318 from taosdata/fix/TD-17734
fix(query): fix apercentile combine crash in stream
2022-07-23 10:12:57 +08:00
Xiaoyu Wang 863ed594c9
Merge pull request #15315 from taosdata/feature/3.0_debug_wxy
fix: plan problem when functions that requires a timeline is used in a partition by query
2022-07-23 09:11:59 +08:00
Ganlin Zhao 2e85180c56 fix(query): fix apercentile combine crash in stream
TD-17734
2022-07-22 20:53:28 +08:00
Xiaoyu Wang 27c71155cc fix: plan problem when functions that requires a timeline is used in a partition by query 2022-07-22 20:29:52 +08:00
Xiaoyu Wang b97c440fe6
Merge pull request #15295 from taosdata/feature/3.0_debug_wxy
fix: plan problem when functions that requires a timeline is used directly in a super table
2022-07-22 18:50:27 +08:00
Xiaoyu Wang 1be414354d fix: plan problem when functions that requires a timeline is used directly in a super table 2022-07-22 17:06:08 +08:00
54liuyao 47cb043f4c feat(stream):optimize update scan range 2022-07-22 16:55:14 +08:00
Haojun Liao 72bbc27e8c fix(query): remove the invalid update ops. 2022-07-22 10:50:54 +08:00
Haojun Liao dae00fd10c
Merge pull request #15221 from taosdata/feature/3_liaohj
refactor(query): do some internal refactor and add some logs.
2022-07-21 11:14:56 +08:00
Haojun Liao 40f5234959 fix(query):update the log. 2022-07-20 19:25:21 +08:00
Haojun Liao abfa6d9162 refactor(query): do some internal refactor and add some logs. 2022-07-20 22:38:19 +08:00
Ganlin Zhao 9fa47f7e67 fix(query): twa function handling null constant or all null column
TD-17562
2022-07-20 13:31:57 +08:00
Ganlin Zhao 26c6db230e fix(query): twa function handling null constant or all null column
TD-17562
2022-07-20 13:22:49 +08:00
Xiaoyu Wang 68dd74bcb3
Merge pull request #15117 from taosdata/feature/3.0_debug_wxy
feat: sql command 'show tags from table_name'
2022-07-19 19:49:59 +08:00
Xiaoyu Wang 6d5d6746f2 feat: sql command 'show tags from table_name' 2022-07-19 18:51:06 +08:00
Xiaoyu Wang 1ad25d9e98 feat: sql command 'show tags from table_name' 2022-07-19 16:25:45 +08:00
Ganlin Zhao ed51c8e329 fix(query): fix mode function processing all null column
TD-17024
2022-07-19 14:54:18 +08:00
Ganlin Zhao ca5e959a1e fix(query): fix derivative nan value
TD-17511
2022-07-19 11:46:17 +08:00
Ganlin Zhao f645943e5b Merge branch '3.0' into feat/agg_client_api 2022-07-16 17:03:38 +08:00
Ganlin Zhao 810be53374 fix(query): fix state operator check 2022-07-16 17:01:44 +08:00
Haojun Liao 55407c50e5 fix(query): disable the optimized implementation of first/last/lastrow function. 2022-07-16 14:44:31 +08:00
Haojun Liao b1826ef736 fix(query): fix a typo 2022-07-15 18:15:06 +08:00
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