Commit Graph

1333 Commits

Author SHA1 Message Date
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
Haojun Liao e4940e82c5 fix(query): update last_row callback function. 2022-10-18 17:54:29 +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 85ec70d099 fix(query): improve performance for first function x10 quickly1 2022-10-18 17:26:51 +08:00
Alex Duan e2637ab6a7 fix(query): improve performance for first function x10 quickly 2022-10-18 17:22:41 +08:00
Xiaoyu Wang 0228caaa0d enh: last cache optimize 2022-10-18 11:38:59 +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
yihaoDeng 3addb95496 Merge branch 'new' into dd 2022-10-13 12:40:26 +08:00
Hongze Cheng 746da9fd27 make it compile 2022-10-12 13:49:40 +08:00
Hongze Cheng 52bf961622 more code 2022-10-12 11:09:42 +08:00
yihaoDeng 37a0b9c759 support compress 2022-10-11 22:18:44 +08:00
Shengliang Guan f0a7430238
Merge pull request #17263 from taosdata/feature/3_liaohj
refactor: do some internal refactor.
2022-10-10 16:13:27 +08:00
Haojun Liao 68842b9c64 refactor: do some internal refactor. 2022-10-10 14:55:58 +08:00
Shengliang Guan c1ed4da67d
Merge pull request #17231 from taosdata/szhou/fixbugs
fix: fix coverity scan issues
2022-10-09 15:44:44 +08:00
shenglian zhou 9a82f3521b fix: fix coverity scan issues 2022-10-09 10:55:38 +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
Shengliang Guan 3bea98d2ac
Merge pull request #17156 from taosdata/fix/TD-19273
fix(query): fix tbname mismatch with multiple rows output functions
2022-09-29 20:34:50 +08:00
Ganlin Zhao 49ce849aa2 Merge branch '3.0' into fix/TD-19273 2022-09-29 17:03:28 +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
Xiaoyu Wang 73642ac3a2 feat: sql command 'show table tags from table_name' 2022-09-29 16:16:49 +08:00
shenglian zhou 4c00225e9f fix: fix coverity scan issue in tudf.c and udfd.c 2022-09-29 11:26:58 +08:00
Xiaoyu Wang 8caa36299c feat: add the _irowts pseudo column to output the timestamp of the interp 2022-09-27 15:23:24 +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
Haojun Liao aa62d4430b
Merge pull request #16970 from taosdata/feature/3_liaohj
refactor(query): do some internal refactor about  the filter  and  interp  query.
2022-09-22 17:09:30 +08:00
Shengliang Guan 570730d495
Merge pull request #16998 from taosdata/feature/TD-18820
fix(stream): data block capacity
2022-09-22 16:38:13 +08:00
54liuyao 3a21da6e46 fix(stream): data block capacity and function byte 2022-09-22 15:54:44 +08:00
Xiaoyu Wang 0321b8c088 fix: avg function data scan optimization 2022-09-22 15:08:07 +08:00
Haojun Liao 7ee2449a73 Merge branch '3.0' into feature/3_liaohj 2022-09-22 14:03:17 +08:00
Haojun Liao 33c075542d refactor(query): do some internal refactor. 2022-09-21 10:26:55 +08:00
Minglei Jin 5f4d6e1c99 fix: remove double free msg's pCont 2022-09-20 11:31:25 +08:00
Shengliang Guan 004e9dabd2
Merge pull request #16927 from taosdata/szhou/cenc
fix: add udfd resident funcs that teardown when udfd exits
2022-09-19 22:10:28 +08:00
slzhou 8ed3bf3ef1 feat: add resident funcs to udfd 2022-09-19 17:28:13 +08:00
Ganlin Zhao b08288df48 fix(query): fix invalid read in doModeAdd
TD-19124
2022-09-19 17:07:22 +08:00
slzhou e0445e0698 fix: taos_connect in gpd_init method and taos_close in gpd_destroy method 2022-09-16 09:56:15 +08:00
slzhou d156bff782 enhance: support resident functions 2022-09-15 17:43:54 +08:00
slzhou 817eed740f fix: prototype to verify stream + udf as task framework 2022-09-15 10:01:24 +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
Haojun Liao 26a27261a0
Merge pull request #16764 from taosdata/feature/3_liaohj
fix(query):  add data required flag for avg against super table.
2022-09-09 17:36:21 +08:00
Haojun Liao 717e6706bb fix(query): add data required flag for avg against super table. 2022-09-09 14:26:44 +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
slzhou 63ba9420f3 fix: change whether uv pipe exists 2022-09-06 13:47:16 +08:00
slzhou 863d2aa1f4 fix: invalid read after teardown udfs and close uv pipe later 2022-09-06 11:32:38 +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 a34da949bc fix(query): support timestap type in max/min function
TD-16780
2022-08-31 18:57:45 +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
Xiaoyu Wang 2ccc7471af enh: query get dbcfg optimization 2022-08-31 11:36:59 +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 37618513a6
Merge branch '3.0' into feature/3_liaohj 2022-08-29 22:47:18 +08:00
Haojun Liao ba8b10e27b refactor(query): do some internal refactor. 2022-08-29 18:47:46 +08:00
Shengliang Guan c581212712
Merge pull request #16439 from taosdata/feature/3_liaohj
feature(query): support last function cache and retrieve data.
2022-08-28 21:27:13 +08:00
Haojun Liao 653bd2ea6e fix(query): set correct page id list. 2022-08-28 16:26:38 +08:00
Haojun Liao 655dbb47c1 refactor(query): do some internal refactor. 2022-08-26 19:19:48 +08:00
slzhou c9a7f27e7c Merge branch '3.0' of github.com:taosdata/TDengine into szhou/fixbugs 2022-08-26 18:51:32 +08:00
Ganlin Zhao 0fbb4d7f9a fix(query): restrict using JSON type as input in string functions
TD-18664
2022-08-26 16:18:21 +08:00
Ganlin Zhao ab85eeaaaa fix(query): restrict using JSON type as input in string functions
TD-18664
2022-08-26 16:15:08 +08:00
Haojun Liao 60d9acb7b4 feature(query): support last function cache and retrieve data. 2022-08-26 15:27:19 +08:00
slzhou f3890f7421 feat: support udf merge in udfd 2022-08-26 14:27:15 +08:00
Haojun Liao 1c06206000 other:merge 3.0 2022-08-25 11:01:36 +08:00
Ganlin Zhao 4bec769211 fix(query): fix avg.py test cases 2022-08-22 19:28:20 +08:00
Ganlin Zhao cd3897c7fe fix(query): fix avg.py test cases 2022-08-22 19:26:28 +08:00
Ganlin Zhao 09dc2e4e12 fix CI 2022-08-22 18:48:51 +08:00
Ganlin Zhao 6c32df7adf fix(query): fix stream session window out of order data agg function
result error

TD-18287
2022-08-22 17:21:03 +08:00
Haojun Liao 38b30d071e fix(query): fix errors. 2022-08-21 00:02:43 +08:00
Ganlin Zhao afdb0242cc Merge branch '3.0' into fix/TD-18487 2022-08-18 19:28:37 +08:00
Ganlin Zhao df2224988f fix(query): restrict interp input type to numerical type only
TD-18487
2022-08-18 17:02:52 +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
Hui Li ca56b8ee03
Merge pull request #16179 from taosdata/fix/TD-17499
fix(query): set proper ltrim/rtrim result schema bytes
2022-08-17 15:33:08 +08:00
Ganlin Zhao cb4a40a7ca fix error 2022-08-17 11:43:14 +08:00
Ganlin Zhao b58402ba3b fix(query): set proper ltrim/rtrim result schema bytes
TD-18431
2022-08-17 11:33:37 +08:00
Ganlin Zhao cca1cacd35 fix(query): set proper ltrim/rtrim result schema bytes
TD-18431
2022-08-17 11:29:55 +08:00
Ganlin Zhao 4c654f8a17 fix(query): set proper ltrim/rtrim result schema bytes
TD-18431
2022-08-17 11:25:32 +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
slzhou 5b54707501 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/fixbug 2022-08-12 14:19:32 +08:00
slzhou 3c27c8b8fd fix: sample/top/bottom is not allowed with fill clause 2022-08-12 10:20:09 +08:00
Xiaoyu Wang 7176bb9198 merge 3.0 2022-08-11 20:30:02 +08:00
Ganlin Zhao 37080a36b8
Merge pull request #15988 from taosdata/fix/TD-18331
fix(query): forbid interp in super table query
2022-08-11 18:15:51 +08:00
54liuyao c10a1adbd3 feat(stream):delete window 2022-08-11 16:33:35 +08:00
Ganlin Zhao c017e4387f fix(query): forbid interp in super table query
TD-18331
2022-08-11 16:17:38 +08:00
Xiaoyu Wang 4f0c6d3aa4 enh: show command optimize 2022-08-11 15:37:26 +08:00
Haojun Liao 2b253fd372
Merge pull request #15955 from taosdata/feature/3_liaohj
refactor: do some internal refactor.
2022-08-11 12:29:27 +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 a87692372a refactor: do some internal refactor. 2022-08-10 20:16:04 +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
Xiaoyu Wang 0829f6611c Merge remote-tracking branch 'origin/feature/3.0_query_optimize' into feature/3.0_query_optimize_wxy 2022-08-09 10:20:32 +08:00
Xiaoyu Wang 7e1917f105 enh: refine the data requirements of the partition physical plan 2022-08-09 09:55:03 +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
Xiaoyu Wang 5ae9fdff7a enh: increase explain output, enhance debugging function 2022-08-08 10:00:10 +08:00
shenglian zhou 03aae25b63 fix: function rename and trigger ci test 2022-08-07 06:39:26 +08:00
shenglian zhou 28eda93ab3 Merge branch '2.0' of github.com:taosdata/TDengine into szhou/fix/nullgroup 2022-08-06 21:50:05 +08:00
shenglian zhou 81d3a2c385 fix: last/first must return not null values 2022-08-06 21:39:53 +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
Ganlin Zhao e808f67518 Merge branch '3.0' into fix/TD-18115 2022-08-05 10:03:17 +08:00
Haojun Liao 3a5fcefc8d other: merge 3.0 2022-08-04 17:24:51 +08:00
Xiaoyu Wang a068db58a1 fix: the problem that drop stable does not clear the catalog cache 2022-08-04 15:09:56 +08:00
Haojun Liao 3566e8cf46 enh(query): diff support timestamp column type. 2022-08-04 15:02:05 +08:00
Zhiqiang Wang ca1b1d9e18
Merge pull request #15721 from taosdata/fix/ZhiqiangWang/TD-18093-fix-minimalDirGB-invalid-error
os: fix minimalDirGB invalid error
2022-08-04 10:44:33 +08:00
afwerar e76f770fc8 os: fix minimalDirGB invalid error 2022-08-04 10:02:09 +08:00
shenglian-zhou 6b06b2d99d
Merge pull request #15712 from taosdata/szhou/fix/udf
fix: remove udfd allocate buffer trace
2022-08-04 08:39:07 +08:00
Ganlin Zhao 6b6f85e22f fix(query): fix interp function core dump
TD-18115
2022-08-03 21:24:47 +08:00
Ganlin Zhao a646bba398
Merge pull request #15716 from taosdata/fix/TD-18010
fix(query): add interp param check
2022-08-03 20:33:59 +08:00
Haojun Liao c253ea73e1 fix(query): fix the null not returns problem. 2022-08-03 19:17:07 +08:00
Haojun Liao 4cd7af0ecf other: merge 3.0 2022-08-03 19:02:43 +08:00
Ganlin Zhao 3ba46acf0c Merge branch '3.0' into fix/TD-18010 2022-08-03 19:02:07 +08:00
Haojun Liao 2a8da022de refactor: do some internal refactor. 2022-08-03 19:01:06 +08:00
Ganlin Zhao 479367207b fix(query): add interp param check
TD-18113
2022-08-03 18:58:47 +08:00
Xiaoyu Wang 335c8b4d8a fix: timeline function validity check 2022-08-03 18:17:12 +08:00
slzhou 3c91c66a2e fix: remove udfd allocate buffer trace 2022-08-03 17:12:46 +08:00
Haojun Liao 074500805c refactor: set filter function for last_row function. 2022-08-03 15:34:42 +08:00
shenglian zhou f71cb30dd0 fix: clean up udfs is not executed when no udfs 2022-08-03 11:20:48 +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
Haojun Liao cbed4713af refactor: do some internal refactor. 2022-08-02 14:34:50 +08:00
Haojun Liao be51233c24 refactor: add dynamic prune for last partial. 2022-08-02 14:26:54 +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
Ganlin Zhao b0becf1ca9 fix(query): fix n-1 function if select column after function position
result row is incorrect.

fix/TD-18040
2022-08-01 14:15:16 +08:00
Liu Jicong c67f5f10a2
Merge pull request #15595 from taosdata/feature/stream
enh(wal): add lock to guarantee read behaviour
2022-07-30 17:09:20 +08:00
Liu Jicong 6d67b17113 enh(wal): add lock to guarantee read behaviour 2022-07-30 16:35:49 +08:00
Liu Jicong f24f2eff42 merge 3.0 2022-07-30 13:03:12 +08:00
Ganlin Zhao 54f2e4af05 fix(query): fix hyperloglog return inconsistent values
TD-17574
2022-07-30 10:55:33 +08:00