Commit Graph

1333 Commits

Author SHA1 Message Date
Ganlin Zhao a2dd6f0ce5 fix(query): fix memory leak in histogram param validation
TD-17598
2022-07-20 14:42:03 +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
dapan1121 d266bfe187 fix: fix stmt memory leak 2022-07-20 08:39:52 +08:00
Ganlin Zhao 6be20e951d fix(query): forbid use null as input for first/last/last_row 2022-07-19 20:21:43 +08:00
Ganlin Zhao 1f75dbb862 Merge branch '3.0' into fix/TD-17511 2022-07-19 19:50: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
Ganlin Zhao d9d6409249 fix(query): forbid use null as input for first/last/last_row
TD-17526
2022-07-19 19:47:46 +08:00
Xiaoyu Wang 6d5d6746f2 feat: sql command 'show tags from table_name' 2022-07-19 18:51:06 +08:00
Ganlin Zhao 78e8d84855 fix(query): change cast function input limit from 1000->4096 bytes
TD-17497
2022-07-19 16:47:24 +08:00
Xiaoyu Wang 1ad25d9e98 feat: sql command 'show tags from table_name' 2022-07-19 16:25:45 +08:00
Xiaoyu Wang 6ab444016b feat: sql command 'show tags from table_name' 2022-07-19 15:35:51 +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 8eb17a28d2 Merge branch '3.0' into fix/TD-17400 2022-07-18 17:36:56 +08:00
Ganlin Zhao f57ad234dc fix(query): fix function first/last do not support constant input
TD-17400
2022-07-18 16:59:03 +08:00
afwerar fa96e64ee0 os: win format negative timestamp error 2022-07-18 16:53:20 +08:00
Ganlin Zhao 5b12fcb3a1 feat(query): add selective function scalar version 2022-07-18 15:23:28 +08:00
Ganlin Zhao 75371098a6 refactor 2022-07-18 15:14:20 +08:00
Ganlin Zhao a4d86275d2 feat(query): add first/last/last_row scalar version 2022-07-18 15:06:21 +08:00
Ganlin Zhao a80027736d feat(query): add top/bottom function scalar version 2022-07-18 14:47:53 +08:00
Ganlin Zhao 7b5a96fa80 Merge branch '3.0' into feat/agg_client_api 2022-07-18 13:42:58 +08:00
Ganlin Zhao e37bdbd5c9 feat(query): add histogram function scalar version
TD-17344
2022-07-18 13:37:18 +08:00
Ganlin Zhao 1ea48b62c8
Merge pull request #15026 from taosdata/feat/agg_client_api
feat(query): add stateduration function scalar version
2022-07-18 10:48:25 +08:00
dapan1121 077fbd6787
Merge pull request #15010 from taosdata/fix/TD-17460
fix: fix taosd mem leak
2022-07-18 09:18:43 +08:00
Ganlin Zhao 107cb15dbd feat(query): add stateduration function scalar version 2022-07-17 22:52:40 +08:00
dapan1121 9ec14ece62 fix: fix taosd mem leak 2022-07-16 18:58:29 +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
Ganlin Zhao d3dca0888d
Merge pull request #14989 from taosdata/feat/agg_client_api
feat(query): add diff function scalar version
2022-07-16 16:58:39 +08:00
Ganlin Zhao 3bcd669fcd feat(query): add statecount function scalar version 2022-07-16 16:46:03 +08:00
Haojun Liao a6e61c7757
Merge pull request #14983 from taosdata/feature/3_liaohj
fix(query): disable the optimized implementation of first/last/lastrow function.
2022-07-16 16:17:51 +08:00
Ganlin Zhao 790cecf123 feat(query): add diff function scalar version 2022-07-16 15:04:45 +08:00
Haojun Liao 46c6302a33 other: merge 3.0 2022-07-16 14:47:22 +08:00
Haojun Liao 55407c50e5 fix(query): disable the optimized implementation of first/last/lastrow function. 2022-07-16 14:44:31 +08:00
Ganlin Zhao 2d1428eadd feat(query): add csum function scalar version
TD-17344
2022-07-16 14:13:45 +08:00
Ganlin Zhao a57d2417c3 feat(query): add hyperloglog scalar version
TD-17344
2022-07-16 14:01:49 +08:00
Ganlin Zhao 59839f0d0a feat(query): add mavg scalar version 2022-07-16 13:41:42 +08:00
Ganlin Zhao 8caa4bcad0 feat(query): add twa function scalar version 2022-07-16 13:34:24 +08:00
Ganlin Zhao 566ab93f83 add derivative scalar version 2022-07-16 11:37:05 +08:00
Ganlin Zhao 598c57e059 feat(query): add irate function scalar version
TD-17344
2022-07-16 11:26:04 +08:00
Ganlin Zhao 624e7b7183 Merge branch '3.0' into feat/agg_client_api 2022-07-16 10:53:57 +08:00
Xiaoyu Wang 2db0b4075f
Merge pull request #14952 from taosdata/feature/3.0_debug_wxy
fix: multi-rows function validity check
2022-07-16 10:11:30 +08:00
Haojun Liao b1826ef736 fix(query): fix a typo 2022-07-15 18:15:06 +08:00
Ganlin Zhao cbd2d8f8a2 fix(query): add spread function scalar version
TD-17344
2022-07-15 17:54:45 +08:00
Haojun Liao 50aa7f9cfa Merge branch '3.0' into feature/3_liaohj 2022-07-15 17:37:47 +08:00
Haojun Liao 3f11c849cd refactor: do some internal refactor. 2022-07-15 17:34:54 +08:00
Ganlin Zhao 85da616ae1 Merge branch '3.0' into feat/agg_client_api 2022-07-15 16:44:46 +08:00
Yihao Deng a5ca6d0ce0
Merge pull request #14942 from taosdata/feat/checkTimeUnSynced
feat: add time unsynced check
2022-07-15 16:36:10 +08:00
Xiaoyu Wang aec4c2313a fix: multi-rows function validity check 2022-07-15 16:17:00 +08:00
Ganlin Zhao 9e49a0012d feat(query): add percentile/apercentile scalar version
TD-17344
2022-07-15 15:52:32 +08:00
Haojun Liao 505e14892e
Merge pull request #14932 from taosdata/feature/3_liaohj
fix(query): handle multi group last_row query.
2022-07-15 15:03:10 +08:00
yihaoDeng baa21c8398 Merge branch '3.0' of https://github.com/taosdata/TDengine into dev 2022-07-15 14:58:00 +08:00
yihaoDeng 35e8ad2811 feat: add time unsynced check 2022-07-15 14:51:20 +08:00
Ganlin Zhao b8a4878b00 fix(query): add leastsquares function scalar version 2022-07-15 14:34:40 +08:00
Haojun Liao 595c7dd4f3 Merge branch '3.0' into feature/3_liaohj 2022-07-15 13:36:14 +08:00
Haojun Liao b9a471624d fix(query): handle multi group last_row query. 2022-07-15 11:19:00 +08:00
Ganlin Zhao 20ce5b32a9 Merge branch '3.0' into feat/agg_client_api 2022-07-15 10:04:28 +08:00
Haojun Liao 159d6c47c8
Merge pull request #14911 from taosdata/feature/3_liaohj
fix(query): fix memory leak.
2022-07-14 20:36:30 +08:00
Haojun Liao 707f0a837a fix(query): set correct fill output object. 2022-07-14 20:11:29 +08:00
Ganlin Zhao 7e661a9e9c feat(query): add avg function scalar version
TD-17344
2022-07-14 20:02:21 +08:00
Ganlin Zhao 256c4aa25b Merge branch '3.0' into feat/agg_client_api 2022-07-14 19:20:45 +08:00
Ganlin Zhao 98e542f884
Merge pull request #14888 from taosdata/feat/agg_client_api
feat(query): add sum/count/max/min function scalar version
2022-07-14 19:09:30 +08:00
Haojun Liao 918df89b4f
Merge branch '3.0' into feature/3_liaohj 2022-07-14 17:56:15 +08:00
Ganlin Zhao b87eb0abb3 feat(query): add stddev function scalar version
TD-17344
2022-07-14 17:39:03 +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 b23e08db85
Merge pull request #14893 from taosdata/feature/3_liaohj
fix(query): set correct fill output column index and fix some memory leaks
2022-07-14 14:25:24 +08:00
Haojun Liao 75aca0b031 fix(query): set correct fill output column index, fix some memory leak, and do some internal refactor, 2022-07-14 13:53:23 +08:00
Haojun Liao c638f9d53a
Merge pull request #14889 from taosdata/feature/3_liaohj
fix(query):fix invalid write in sample query processing.
2022-07-14 13:19:45 +08:00
Ganlin Zhao 0cb911c0b4 Merge branch '3.0' into feat/agg_client_api 2022-07-14 11:40:53 +08:00
Ganlin Zhao 3f31c464f0 feat(query): add max function scalar version
TD-17344
2022-07-14 10:58:45 +08:00
Haojun Liao fb49fd40cd fix(query):fix invalid write in sample query processing. 2022-07-14 10:44:35 +08:00
Ganlin Zhao 8b1e56389c feat(query): add min function scalar version
TD-17344
2022-07-14 10:26:00 +08:00
Xiaoyu Wang bc1251e0cb
Merge pull request #14855 from taosdata/feature/3.0_debug_wxy
feat: support pseudo columns such as _qstart, _qend and _qduration
2022-07-14 10:09:32 +08:00
Xiaoyu Wang 570f036c63 Merge remote-tracking branch 'origin/3.0' into feature/3.0_debug_wxy 2022-07-14 09:52:51 +08:00
Haojun Liao 083de75afc fix(query):fix memory leak. 2022-07-13 23:15:58 +08:00
Ganlin Zhao 80f175bdbe feat(query): add count function scalar version
TD-17344
2022-07-13 19:46:56 +08:00
Xiaoyu Wang 4830b7d9d3 feat: support pseudo columns such as _qstart, _qend and _qduration 2022-07-13 18:12:02 +08:00
Ganlin Zhao dd8f235e97 feat(query): add count function scalar version
TD-17344
2022-07-13 17:47:56 +08:00
Haojun Liao dfb0511e17 Merge branch '3.0' into feature/3_liaohj 2022-07-13 16:41:26 +08:00
Xiaoyu Wang d2ce16a875 Merge remote-tracking branch 'origin/3.0' into feature/3.0_debug_wxy 2022-07-13 15:37:21 +08:00
Xiaoyu Wang 43b5ca1efe feat: support pseudo columns such as _qstart, _qend and _qduration 2022-07-13 15:13:01 +08:00
Haojun Liao 649cf7e55d fix(query): support last_row(tags) for super table query. 2022-07-13 14:21:44 +08:00
Xiaoyu Wang f54ad0346e
Merge pull request #14827 from taosdata/feature/3.0_debug_wxy
feat: the 'null' value for the user is of type 'varchar(0)'
2022-07-13 11:28:00 +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
Xiaoyu Wang 759bc7c434 feat: the 'null' value for the user is of type 'varchar(0)' 2022-07-12 16:51:37 +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
Ganlin Zhao 7069380a29
Merge pull request #14782 from taosdata/fix/TD-17021
fix(query): histogram function interval query for super table missed some child table records.
2022-07-12 10:11:37 +08:00
Haojun Liao 76e0ed8966 fix(query): add parameter check. 2022-07-11 21:01:43 +08: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
Xiaoyu Wang 6a845b746c fix: some problems of parser 2022-07-11 15:15:39 +08:00
Xiaoyu Wang 5708d497ce fix: syntax issue with '(select ... limit) statement' 2022-07-11 10:07:11 +08:00
Xiaoyu Wang 5f0005a7b7 merge 3.0 2022-07-10 17:47:31 +08:00
Xiaoyu Wang a64a0320a0 fix: some problem of parser and planner 2022-07-10 15:21:16 +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
Shengliang Guan fa77494a72 Merge remote-tracking branch 'origin/3.0' into fix/valgrind 2022-07-08 16:58:51 +08:00
Shengliang Guan dca93b18cc refactor: adjust logs 2022-07-08 16:57:54 +08:00
Haojun Liao 1711d646c1
Merge pull request #14671 from taosdata/feature/3_liaohj
enh(query): add block sma for int type column data.
2022-07-08 16:23:13 +08:00
Shengliang Guan 6e12d8e707 refactor: adjust log 2022-07-08 15:20:15 +08:00
Haojun Liao 211985f03e refactor: do some internal refactor. 2022-07-07 17:23:54 +08:00
Haojun Liao 557873c1bc other: merge 3.0 2022-07-07 16:50:00 +08:00
Haojun Liao d9e5172357 fix(query): set the correct sma data 2022-07-07 15:32:56 +08:00
Zhiqiang Wang ac08c6eaa5
Merge pull request #14621 from taosdata/fix/ZhiqiangWang/TD-17006-fix-mac-ctest-error
test: fix Mac test error
2022-07-07 10:42:58 +08:00
afwerar 98641a8ff5 test: fix Mac test error 2022-07-06 20:47:38 +08:00
dapan1121 82dbf54719 Merge branch 'fix/dnode' of github.com:taosdata/TDengine into fix/dnode 2022-07-06 20:34:07 +08:00
dapan1121 a3bf5b96c4 fix: fix query redirect issue 2022-07-06 20:33:23 +08:00
Minglei Jin d843a8ac89
Merge pull request #14486 from taosdata/feat/tsdb_refact
Feat/tsdb refact
2022-07-06 17:43:22 +08:00
Ganlin Zhao fee4d3c2d3 Merge branch '3.0' into fix/TD-16322 2022-07-06 13:50:26 +08:00
Ganlin Zhao 27300117d0 fix(query): fix substr parameter check
TD-16322
2022-07-06 13:49:25 +08:00
Haojun Liao 29949a965b other: merge 3.0. 2022-07-06 13:46:24 +08:00
Haojun Liao ddb71ed095 refactor: do some internal refactor. 2022-07-06 13:33:21 +08:00
Ganlin Zhao 453f48797c
Merge pull request #14579 from taosdata/fix/TD-16994
fix(query): top/bottom parameter check failure on int type
2022-07-06 13:10:51 +08:00
Ganlin Zhao 9355392c80
Merge pull request #14537 from taosdata/fix/TD-16877
fix(query): stddev function support unsigned data types
2022-07-06 10:14:23 +08:00
Ganlin Zhao 144df87ac6 fix(query): top/bottom parameter check failure on int type
TD-16994
2022-07-06 09:59:45 +08:00
Minglei Jin fc20a61c85
Merge branch '3.0' into feat/tsdb_refact 2022-07-06 00:37:21 +08:00
Ganlin Zhao cc89370f93 Merge branch '3.0' into fix/TD-17012 2022-07-05 19:59:36 +08:00
Haojun Liao 15d8ae0fee other: merge 3.0 2022-07-05 19:22:50 +08:00
Xiaoyu Wang cf9a6deaa5
Merge pull request #14543 from taosdata/feature/3.0_debug_wxy
fix: execution plan problem in the mode of using qnode as much as possible
2022-07-05 18:48:02 +08:00
Xiaoyu Wang 5b14444ca2 fix: a problem of unique function with ts 2022-07-05 18:00:07 +08:00
Ganlin Zhao 278339bdc6 fix(query): add "1b" timeunit in function param to represent nanosecond
TD-17012
2022-07-05 15:38:29 +08:00
Ganlin Zhao e6230baf70 fix(query): add "1b" timeunit in function param to represent nanosecond
TD-17012
2022-07-05 15:35:24 +08:00
slzhou 7088166e98 fix: fix memory leak when uv_loop_close 2022-07-05 14:02:33 +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
Haojun Liao 6bfe5df94a other: merge 3.0 2022-07-05 09:47:39 +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
Ganlin Zhao 09c6fd9c09
Merge pull request #14498 from taosdata/fix/TD-16972
fix(query): add histogram function parameter check
2022-07-04 17:23:29 +08:00
Ganlin Zhao 22d8c5e9ab fix(query): disable histogram to be used with indefinite rows function
in projection

TD-16948
2022-07-04 15:26:44 +08:00
Ganlin Zhao a7e222ff92 fix(query): histogram function add param check for distribution 2022-07-04 14:57:20 +08:00
Ganlin Zhao 684621159a extend error msg buffer size 2022-07-04 14:46:58 +08:00
Ganlin Zhao 89e4be84fe fix(query): add histogram function parameter check
TD-16972
2022-07-04 14:40:12 +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
Ganlin Zhao 68fab47397 enh(query): add cast from binary/nchar -> timestamp for date-time string 2022-07-02 16:09:22 +08:00
Ganlin Zhao 7a588bd16f Merge branch '3.0' into fix/TD-15257 2022-07-02 11:20:04 +08:00
Ganlin Zhao f44e5310da Merge branch '3.0' into fix/TD-15257 2022-07-02 11:18:50 +08:00
Xiaoyu Wang 7a53bae352 merge 3.0 2022-07-01 20:05:15 +08:00
Xiaoyu Wang d1eef6880b fix: csum/diff/mavg support subquery 2022-07-01 19:59:28 +08:00
Ganlin Zhao e8bff44bbb Merge branch '3.0' into fix/TD-16969 2022-07-01 18:08:39 +08:00
Ganlin Zhao 41aff1d1f6 fix(query): normalized parameter of histogram function can only be 1/0
TD-16969
2022-07-01 18:05:34 +08:00
Ganlin Zhao 9c2af3dd96 Merge branch '3.0' into fix/TD-15257 2022-07-01 17:23:59 +08:00
Xiaoyu Wang ec7bfd9eba fix: csum/diff/mavg support subquery 2022-07-01 17:17:49 +08:00
wangmm0220 4e6b3d72ac Merge branch '3.0' into feature/TD-13041 2022-07-01 16:54:18 +08:00
wangmm0220 085ace59e0 fix:to_json() function 2022-07-01 16:47:54 +08:00
Ganlin Zhao 55b8271554 fix crash 2022-07-01 16:34:07 +08:00
Ganlin Zhao a239337f5a fix(quer): fix time unit parameter check
TD-15257
2022-07-01 15:54:03 +08:00
Xiaoyu Wang a94e5f9bec fix: csum/diff/mavg support subquery 2022-07-01 15:47:07 +08:00
Ganlin Zhao 1f88ea5597 fix(quer): fix time unit parameter check
TD-15257
2022-07-01 15:46:35 +08:00
Xiaoyu Wang 129c9251bd fix: csum/diff/mavg support subquery 2022-07-01 15:01:37 +08:00
Ganlin Zhao f9d250781b fix(quer): fix time unit parameter check
TD-15257
2022-07-01 14:12:01 +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
Zhiqiang Wang 0dc6aa2972
Merge pull request #14421 from taosdata/fix/ZhiqiangWang/TD-16357-replace-win-qsort-func
os: replace win qsort func
2022-06-30 21:58:58 -07:00
afwerar 4e8f3db596 os: replace win qsort func 2022-07-01 11:54:21 +08:00
Ganlin Zhao 45b47b7a2b
Merge pull request #14399 from taosdata/enh/last_row_function
feat(query): add last_row function without cache
2022-07-01 11:28:43 +08:00
dapan1121 068924cc62
Merge pull request #14385 from taosdata/feature/queryredirect
feat: support query redirect
2022-06-30 18:03:17 +08:00
Ganlin Zhao 0692ab4c5e enh(query): add last_row selectivity 2022-06-30 17:55:54 +08:00
Ganlin Zhao e38e23a3ec fix error 2022-06-30 17:45:55 +08:00
Ganlin Zhao 1dd89be98b enh(query): add last_row function without cache
TD-16927
2022-06-30 17:39:20 +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 5ecc0d2ba8
Merge pull request #14382 from taosdata/refactor/db_precision
fix(query): support irate function for ms/ns precision db
2022-06-30 15:55:06 +08:00
dapan1121 c28c77a099 Merge branch '3.0' into feature/queryredirect 2022-06-30 14:35:15 +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 23a55dc9e4
Merge pull request #14375 from taosdata/refactor/db_precision
refactor(query): function adoption to us/ns db precision
2022-06-30 12:32:15 +08:00
Ganlin Zhao 5d694bc5d7 fix translate function for now/today 2022-06-30 11:45:11 +08:00
Ganlin Zhao 63d799feeb refactor(query): set stateduration function default time unit as db
precision
2022-06-30 11:32:00 +08:00
Xiaoyu Wang 99563fc136
Merge pull request #14376 from taosdata/feature/3.0_debug_wxy
feat: the last_row function supports all scenes
2022-06-30 11:28:53 +08:00
Xiaoyu Wang cf35174d53 feat: the last_row function supports all scenes 2022-06-30 10:23:35 +08:00
Ganlin Zhao a2bdaf8a93 Merge branch '3.0' into refactor/db_precision 2022-06-30 09:58:59 +08:00
Ganlin Zhao f324a50b2e
Merge pull request #14369 from taosdata/refactor/db_precision
refactor(query): function adoption to us/ns db precision
2022-06-30 09:56:47 +08:00
Liu Jicong 0f0fe6276a merge from 3.0 2022-06-29 21:33:10 +08:00
Liu Jicong c2955a807b feat(tmq): offset support snapshot 2022-06-29 21:04:51 +08:00
Ganlin Zhao 4c23223447 refactor(query): function adoption to us/ns db precision
TD-16436
2022-06-29 20:46:51 +08:00
wangmm0220 06552626e0 fix:disable some json test cases 2022-06-29 20:15:49 +08:00
Ganlin Zhao 5e31c9e8fe refactor(query): function adoption to us/ns db precision
TD-16436
2022-06-29 20:07:33 +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
dapan1121 53efe75146 feat: query redirect 2022-06-29 17:56:35 +08:00
Ganlin Zhao 290d5b3f14 refactor(query): function adoption to us/ns db precision
TD-16436
2022-06-29 17:50:33 +08:00
Xiaoyu Wang c2822a6449
Merge pull request #14347 from taosdata/feature/3.0_wxy
feat: sql system info function 'database()', 'client_version()', 'server_version()', 'server_status()', 'current_user()' and 'user()'
2022-06-29 15:45:19 +08:00
wangmm0220 873546bee5 fix:add log 2022-06-29 15:03:17 +08:00
Xiaoyu Wang ae076af4f1 feat: sql system info function 'database()', 'client_version()', 'server_version()', 'server_status()', 'current_user()' and 'user()' 2022-06-29 11:41:32 +08:00
dapan1121 07b46f9e3c Merge branch '3.0' into feature/queryredirect 2022-06-29 10:53:52 +08:00
dapan1121 6d8fd7e506 feat: query redirect 2022-06-29 10:51:22 +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 d91443ce71 Merge branch '3.0' into enh/first_last_select 2022-06-28 16:47:27 +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
Xiaoyu Wang 1f47241fc9 merge 3.0 2022-06-28 13:48:13 +08:00
Ganlin Zhao 75da5ec070
Merge pull request #14309 from taosdata/feat/mode_function
feat(query): support mode function
2022-06-28 13:22:50 +08:00
shenglian-zhou 344fa6ea97
Merge pull request #14314 from taosdata/szhou/udf/udf-outside-tdengine
feat: udf can be compiled outside TDengine
2022-06-28 12:36:24 +08:00
slzhou 9540d1eac9 feat: udf can be compiled outside TDengine 2022-06-28 11:54:16 +08:00
Ganlin Zhao e9fbe1805b Merge branch '3.0' into feat/mode_function 2022-06-28 10:42:58 +08:00
Ganlin Zhao 4d05053e66 fix(query): add mode function 2022-06-28 10:42:10 +08:00
dapan1121 4a55ed07b3 feature: query redirect 2022-06-28 10:34:51 +08:00
Xiaoyu Wang cd36807faf feat: refactor the plan implementation of unique function 2022-06-27 21:30:20 +08:00
wangmm0220 e2f4a2a03c Merge branch 'feature/TD-13041' of github.com:taosdata/TDengine into feature/TD-13041 2022-06-27 21:21:22 +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
yihaoDeng 14209eeec6 feat: add no retry to query 2022-06-27 19:34:50 +08:00
Ganlin Zhao 515109088f feat(query): support mode function 2022-06-27 15:08:13 +08:00
Ganlin Zhao 570b36cb9b
Merge pull request #14232 from taosdata/enh/cast_function
enh(query): enhance cast function to support more types
2022-06-25 14:57:58 +08:00
Yihao Deng 6e4e10ad41
Merge pull request #14214 from taosdata/feat/rpcRefactor1
feat: rpc refactor
2022-06-25 14:47:37 +08:00
Xiaoyu Wang 9c85131d22
Merge pull request #14219 from taosdata/feature/3.0_debug_wxy
feat: support partition by expression and aggregate function output together
2022-06-25 12:42:09 +08:00
yihaoDeng 7c57b03de7 handle rpc retry 2022-06-25 12:19:52 +08:00
Ganlin Zhao b1f16fca4e Merge branch '3.0' into enh/cast_function 2022-06-25 10:48:16 +08:00
Ganlin Zhao 37d1cc28a6 refactor(query): refactor _group_key function 2022-06-25 10:43:06 +08:00
Xiaoyu Wang b857d390e7 merge 3.0 2022-06-24 21:13:11 +08:00
Xiaoyu Wang 853f1df3ab feat: support partition by expression and aggregate function output together 2022-06-24 21:07:12 +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 4f629ec68b enh(query): enhance cast function to support more types
TD-15473
2022-06-24 16:53:56 +08:00
Xiaoyu Wang 096c292d78
Merge pull request #14179 from taosdata/feature/3.0_debug_wxy
feat: sql command 'show consumers' and 'show subscriptions'
2022-06-24 12:51:21 +08:00
Ganlin Zhao 4995ce780e
Merge pull request #14181 from taosdata/fix/TD-15216
fix(query): math function invalid input should have null output
2022-06-24 10:33:14 +08:00
Ganlin Zhao 38c61a1a25 fix: pow/log function invalid input handling 2022-06-23 20:58:43 +08:00
shenglian-zhou d76d8f87e3
Merge pull request #14172 from taosdata/szhou/feature/misc
fix: set correct operator blocking and add closing rpc trace to udfd
2022-06-23 20:44:05 +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
Liu Jicong 5cdef06f8c
Merge pull request #14119 from taosdata/feature/3_liaohj
refactor(query): do some internal refactor.
2022-06-23 20:08:15 +08:00
Ganlin Zhao df1f4cc53f fix compilation error 2022-06-23 19:34:10 +08:00
Xiaoyu Wang 4fcd667bf6 feat: sql command 'show consumers' and 'show subscriptions' 2022-06-23 18:03:15 +08:00
shenglian zhou 9278de28b4 fix: improve udfd exist speed 2022-06-23 17:45:16 +08:00
Ganlin Zhao 7fda5a861e fix(query): fix to_ISO8601 function crash when processing constant
illegal inputs

TD-15211
2022-06-23 17:32:15 +08:00
shenglian zhou c449b7208a fix: set correct operator blocking and add closing rpc trace to udfd 2022-06-23 16:52:06 +08:00
Ganlin Zhao b556d1fa62 fix(query): fix to_ISO8601 function crash when processing constant
illegal inputs

TD-15211
2022-06-23 16:37:36 +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
shenglian zhou a31569f116 fix: set correct datablock rows and columns 2022-06-23 13:38:20 +08:00
Haojun Liao d3d258caa9 fix(query): prepare buffer before copying data. 2022-06-22 23:05:34 +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
Xiaoyu Wang 269e9ed505
Merge pull request #14093 from taosdata/feature/3.0_debug_wxy
feat: sql function 'last_row' and sql command 'select constant'
2022-06-22 10:54:47 +08:00
Xiaoyu Wang eeab56e318 feat: sql command 'select constant' 2022-06-22 09:54:31 +08:00
Ganlin Zhao 56e39ae7a9
Merge pull request #14074 from taosdata/fix/TD-16394
fix(query): fix leastsquares function random result when input type is tinyint
2022-06-21 22:19:51 +08:00
afwerar 9bde2bffec test: fix sim test error 2022-06-21 21:06:32 +08:00
afwerar 9dff7b93c6 test: fix sim test error 2022-06-21 20:04:55 +08:00
Xiaoyu Wang 45a806f789 feat: sql function 'last_row' 2022-06-21 19:52:26 +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
shenglian-zhou e05a6ca7fa
Merge pull request #13973 from taosdata/szhou/feature/project-elimation
feature: eliminate projection optimization
2022-06-20 17:48:27 +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
shenglian zhou 0e905bb3c1 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/feature/project-elimation 2022-06-19 21:41:08 +08:00
Xiaoyu Wang bac6e27c20 feat: sql command 'interp' 2022-06-19 19:39:12 +08:00
Xiaoyu Wang bd61367f0a
Merge pull request #13988 from taosdata/feature/3.0_debug_wxy
feat: the function manager adds an interface for manually configuring the parameters of the merge function
2022-06-19 10:34:53 +08:00
Xiaoyu Wang 7db6081c72 feat: the function manager adds an interface for manually configuring the parameters of the merge function 2022-06-19 10:06:46 +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
shenglian zhou 2c5fc8b537 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/feature/project-elimation 2022-06-18 20:37:26 +08:00
54liuyao 8c47a18dbf feat(stream): semi session operator 2022-06-18 19:57:08 +08:00
Xiaoyu Wang 22d1422b49 feat: sql command 'show table distributed' 2022-06-18 18:37:18 +08:00
shenglian zhou a215003146 feature: eliminate projection optimization 2022-06-18 15:20:30 +08:00
Xiaoyu Wang fe25e45e0f
Merge pull request #13899 from taosdata/feature/3.0_wxy
feat: the unique function and tail function are rewritten as the corresponding clauses
2022-06-17 14:30:23 +08:00
Haojun Liao cc638a2236 fix(query): set null for null value in groupby 2022-06-16 21:13:18 +08:00
Xiaoyu Wang f350ade453 feat: the unique function and tail function are rewritten as the corresponding clauses 2022-06-16 19:45:09 +08:00
Xiaoyu Wang e224d40480 feat: the unique function and tail function are rewritten as the corresponding clauses 2022-06-16 16:58:55 +08:00
Haojun Liao 2c746848fc
Merge pull request #13877 from taosdata/feature/3_liaohj
enh(query): partition by supports arithmetic expr
2022-06-16 16:18:50 +08:00
dapan1121 69eb9daddb
Merge pull request #13851 from taosdata/feature/showqueries
feat: support some show and kill commands
2022-06-16 09:15:02 +08:00
Haojun Liao 6b2d4a6aca other: merge 3.0 2022-06-15 23:05:55 +08:00
Haojun Liao f2de1af904 enh(query): partition by support arithmetic expr, and do some internal refactor. 2022-06-15 23:00:31 +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
Liu Jicong fd9bb8db73
Merge pull request #13860 from taosdata/feature/stream
feat(stream): trigger mode add max delay
2022-06-15 17:11:18 +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
Liu Jicong 8eb08fa0d4 feat(stream): trigger mode add max delay 2022-06-15 16:11:20 +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
dapan1121 96f8a0da42 Merge branch '3.0' into feature/showqueries 2022-06-15 11:34:54 +08:00
dapan1121 947aecb74f show queries/connection; kill connection 2022-06-15 11:27:53 +08:00
Liu Jicong e71023e593
Merge pull request #13819 from taosdata/feature/stream
enh(stream): forbid indefinite row functions for streams
2022-06-14 17:41:33 +08:00
Liu Jicong 1248b5fbb3 enh(stream): forbid indefinite row functions for streams 2022-06-14 17:11:41 +08:00
Ganlin Zhao 7ed7fd0fd6 enable stddev splitting 2022-06-14 17:00:32 +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 4ccbc4d85f enable avg function partial/merge 2022-06-14 15:34:55 +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
Haojun Liao 5603f4a1fb enh(query): add derivative function. 2022-06-14 14:46:09 +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 6f27ee975e enable last splitting 2022-06-14 11:04:36 +08:00
Ganlin Zhao 6a4fc45771 fix bugs 2022-06-14 11:00:22 +08:00
Ganlin Zhao 589b30422f add last function splitting 2022-06-14 10:51:00 +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 763e8bd6ae enable first function split 2022-06-13 21:17:55 +08:00
Xiaoyu Wang b3bd98ed58 Merge remote-tracking branch 'origin/3.0' into feature/3.0_wxy 2022-06-13 21:03:38 +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
Xiaoyu Wang f080f321dd merge 3.0 2022-06-13 20:06:29 +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 8ed69d2195 merge 3.0 2022-06-13 19:00:09 +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
Xiaoyu Wang 3954edb366 feat: avg function rewrite 2022-06-13 18:36:23 +08:00
Ganlin Zhao 05eb30489d fix(query): disable elapsed function split 2022-06-13 17:11:10 +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