Commit Graph

1333 Commits

Author SHA1 Message Date
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
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 eee5408d25 Merge branch 'feature/3_liaohj' of github.com:taosdata/tdengine into feature/3_liaohj 2022-06-11 19:28:44 +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
Haojun Liao b0593497c4
Merge pull request #13731 from taosdata/feature/3_liaohj
fix(query): set correct data output position.
2022-06-11 19:07: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
Xiaoyu Wang 67baa48961
Merge pull request #13720 from taosdata/feature/3.0_wxy
fix: some problems of parser
2022-06-11 17:16:47 +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 40f6fad49f fix bug 2022-06-11 16:21:45 +08:00
Ganlin Zhao 6473c85e13 fix bugs 2022-06-11 16:14:08 +08:00
Ganlin Zhao e9a8217f97 fix getTopBotInfoSize issue 2022-06-11 15:44:55 +08:00
Xiaoyu Wang e17396be9c fix: some problems of parser 2022-06-11 15:44:49 +08:00
Ganlin Zhao 56705a995f enable top function split 2022-06-11 15:29:26 +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 741d0c5c69 support merge function resType same as original input type 2022-06-10 21:10:55 +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
Ganlin Zhao 220b9eb558
Merge pull request #13671 from taosdata/fix/timezone_minorfix
fix(query): timezone check minor fix
2022-06-10 17:44:37 +08:00
Haojun Liao dba09f9cd8
Merge pull request #13679 from taosdata/feature/3_liaohj
fix(query): add value check.
2022-06-10 15:59:05 +08:00
Haojun Liao 2da08076ce fix(query): add value check. 2022-06-10 14:49:49 +08:00
Xiaoyu Wang bc32629c15 merge 3.0 2022-06-10 14:32:54 +08:00
Xiaoyu Wang 46bac2f579 fix: a problem of interval distributed split 2022-06-10 14:28:58 +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
Ganlin Zhao e46783954d fix(query): timezone check minor fix 2022-06-10 10:18:31 +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 2efbb56997 enable elapsed function splitting 2022-06-09 20:09:37 +08:00
Ganlin Zhao d2efa06742 add elapsed function merge/partial functions 2022-06-09 19:49:29 +08:00
Ganlin Zhao 564b184978
Merge pull request #13657 from taosdata/fix/TD-16372
fix(query): add to_iso8601 function timezone validation
2022-06-09 19:45:02 +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 cbfa116d06 fix(query): add to_iso8601 function timezone validation
TD-16372
2022-06-09 17:26:49 +08:00
Ganlin Zhao 32591162b4 fix(query): add to_iso8601 function timezone validation
TD-16372
2022-06-09 17:17:10 +08:00
Ganlin Zhao 20b1ee6160 fix bugs 2022-06-09 14:21:27 +08:00
Ganlin Zhao bed14b6ee3 enable hll splitting 2022-06-09 13:36:49 +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 23c0bdf052 enh(query): add hll function distributed splitting 2022-06-09 10:57:32 +08:00
Ganlin Zhao ca2d1f8b3c Merge branch '3.0' into enh/histogram_split 2022-06-08 20:34:39 +08:00
Ganlin Zhao ea05f8af12 fix bugs 2022-06-08 20:30:43 +08:00
Ganlin Zhao 9ccc3fb853 fix: enable histogram splitting 2022-06-08 19:12:57 +08:00
Ganlin Zhao fc1ad1aeac add histogram partial/merge function 2022-06-08 19:02:07 +08:00
Ganlin Zhao c07bea7ff5 add histogram partial/merge function 2022-06-08 18:40:16 +08:00
54liuyao a8da3cfd14 feat(stream): stream state support apercentile 2022-06-08 18:20:43 +08:00
Ganlin Zhao 081a8a62b2 add histogram partial/merge translate functions 2022-06-08 17:59:32 +08:00
Ganlin Zhao d49f1dbc15 enh(query): add histogram function distributed splitting
TD-16321
2022-06-08 17:38:51 +08:00
Ganlin Zhao e4216bbc87 fix bugs 2022-06-08 16:35:45 +08:00
Ganlin Zhao 991365802b enable spread splitting 2022-06-08 16:35:32 +08:00
Ganlin Zhao dad3dd4f97 fix bugs 2022-06-08 16:35:13 +08:00
Ganlin Zhao 622b4f8d47 add spread split partial/merge function 2022-06-08 16:34:48 +08:00
Ganlin Zhao 183fcac013 add spread splitting translate fucntions 2022-06-08 16:34:37 +08:00
Ganlin Zhao ad895c243d enh(query): add spread function distributed splitting 2022-06-08 16:34:23 +08:00
Ganlin Zhao b6eaec2ad4 Merge branch '3.0' into feature/dist_split_glzhao 2022-06-08 11:13:24 +08:00
Ganlin Zhao b93ea371a6 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0 2022-06-08 11:13:08 +08:00
Ganlin Zhao e5b1ba6dd1 add apercentile "t-digest" splitting 2022-06-08 11:11:48 +08:00
54liuyao 262a221c12 distributed interval 2022-06-08 09:33:11 +08:00
Ganlin Zhao 6fff47b389 fix apercentile percent param in distributed splitting 2022-06-07 20:26:34 +08:00
Ganlin Zhao 367af0ec30 fix bugs 2022-06-07 19:55:55 +08:00
Ganlin Zhao 53ee89a505 fix bugs 2022-06-07 19:30:49 +08:00
Ganlin Zhao 351ac2d81c fix bugs 2022-06-07 19:16:40 +08:00
Ganlin Zhao e6a852090f add apercentile distributed spliting 2022-06-07 18:42:20 +08:00
Ganlin Zhao dff653ed16 add apercentile distributed spliting 2022-06-07 16:54:08 +08:00
Ganlin Zhao 49b277e64b refactor 2022-06-07 14:12:12 +08:00
Ganlin Zhao 12f4bc3c90 refactor 2022-06-07 11:45:55 +08:00
Ganlin Zhao 384f226267 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0 2022-06-07 11:27:09 +08:00
Ganlin Zhao 5d543449c9 enh(query): add distributed splitting of aggregate function
TD-16321
2022-06-07 11:23:19 +08:00
Xiaoyu Wang 0b5c08edb9 merge 3.0 2022-06-06 11:47:20 +08:00
afwerar ac09ef04a9 fix(os): add win32 udf case 2022-06-05 17:02:43 +08:00
Xiaoyu Wang 8ba9496471 feat: add physical plannode of indefinite rows func 2022-06-04 22:57:01 +08:00
54liuyao 5400507245 feat(stream): stream state operator 2022-06-04 20:36:28 +08:00
Xiaoyu Wang 0ef1a19b23
Merge pull request #13440 from taosdata/feature/3.0_wxy
feat: group by distributed split
2022-06-04 09:49:44 +08:00
Xiaoyu Wang 7ede8db3c4 fix: a problem of parser async 2022-06-04 09:33:13 +08:00
Haojun Liao f1bcfb309d fix(query): set null for empty min/max 2022-06-03 11:14:30 +08:00
Ganlin Zhao 077724b892
Merge pull request #13423 from taosdata/fix/TD-16232
fix(query): concat/concat_ws function output incorrect when all params are constant and include NULL value.
2022-06-02 18:49:35 +08:00
Ganlin Zhao de167cd46d fix(query): concat/concat_ws function output incorrect when
all param are constant and include NULL value.

TD-16232
TD-16233
2022-06-02 10:17:07 +00:00
Xiaoyu Wang 6c5ec22718
Merge pull request #13417 from taosdata/feature/3.0_wxy
feat: stream interval distributed split
2022-06-02 17:21:04 +08:00
Shengliang Guan 0bade86534
Merge pull request #13410 from taosdata/fix/mnode
enh: adjust vnode replica and some logs
2022-06-02 17:06:10 +08:00
Xiaoyu Wang f9b7443482 feat: stream interval distributed split 2022-06-02 16:38:44 +08:00
Xiaoyu Wang f45ddaf1c8 feat: stream interval distributed split 2022-06-02 16:37:46 +08:00
Liu Jicong 77fe6a4ef7
Merge branch '3.0' into feature/3_liaohj 2022-06-02 15:05:49 +08:00
Shengliang Guan 27c1687a05 refactor: adjust some logs 2022-06-02 14:30:26 +08:00
Xiaoyu Wang cd7d3c59a2
Merge pull request #13403 from taosdata/feature/3.0_distributed_split
feat: interval distributed split
2022-06-02 11:07:42 +08:00
Xiaoyu Wang edd0295a00 feat: interval distributed split 2022-06-02 10:45:27 +08:00
Ganlin Zhao adc1030197
Merge pull request #13393 from taosdata/fix/TD-16070
feat(query): add log function support natural logarithm
2022-06-01 22:38:15 +08:00
Ganlin Zhao 2c0f42c2be
Merge pull request #13390 from taosdata/fix/TD-16070
fix(query): concat/concat_ws function null constant handling and param check
2022-06-01 21:54:51 +08:00
Ganlin Zhao 98b40a59a0 feat(query): add log function support natural logrithm
TD-15182
2022-06-01 13:52:01 +00:00
Ganlin Zhao f566146cc9 fix(query): fix concat_ws separator param can only be constant string
TD-16070
2022-06-01 12:50:25 +00:00
Ganlin Zhao a00ea8e48d enh(query): to_iso8601 param handing 2022-06-01 10:27:11 +00:00
Ganlin Zhao 3d6147fd9c fix(query): fix to_iso8601 timezone param check 2022-06-01 14:58:10 +08:00
Ganlin Zhao a9787ea446 enh(query): to_iso8601 add customized timzone format
TD-16152
2022-06-01 12:16:06 +08:00
Ganlin Zhao 4ba4f53912 fix(query): fix leastsquares function param type error
TD-16187
2022-05-31 09:49:30 -04:00
Ganlin Zhao 34d8d05449 fix(query): fix leastsquares c0+null and also group by output has empty
result

TD-16136
2022-05-31 09:31:30 -04:00
Ganlin Zhao 11e55389b1 fix: fix typo 2022-05-31 06:54:27 -04:00
Ganlin Zhao 93a3c27168 fix(query): restrict stateduration function time unit parameter greater
than db precision.

TD-16171
2022-05-31 06:44:44 -04:00
Ganlin Zhao 5344ab10f2 fix((query): add statecount/stateduration parameter check
TD-16160
2022-05-31 06:26:46 -04:00
Haojun Liao cca327190d fix(query): restore some remove attributes. 2022-05-31 17:46:35 +08:00
Haojun Liao 6007b8ad11 Merge branch 'feature/3_liaohj' of github.com:taosdata/tdengine into feature/3_liaohj 2022-05-31 12:12:59 +08:00
Haojun Liao c06316537e enh(query): the results of count and hyperloglog is configurable. 2022-05-31 15:04:52 +08:00
Haojun Liao 15f5713bda Merge remote-tracking branch 'origin/3.0' into feature/3_liaohj 2022-05-31 11:50:04 +08:00
Xiaoyu Wang 3e5ab6b54c feat: add physical plannode of indefinite rows func 2022-05-31 11:29:10 +08:00
Ganlin Zhao fa0d370828
Merge pull request #13241 from taosdata/TD-16122/fix
fix(query): fix unique/last/first number of param check
2022-05-31 00:03:12 +08:00
Haojun Liao a7feca23fe other: merge 3.0 2022-05-30 23:32:00 +08:00
Ganlin Zhao c630f42653 fix(query): fix unique function number of param check
TD-16134
2022-05-30 17:08:47 +02:00
Haojun Liao 70927458e5 refactor(query): do some internal refactor. 2022-05-30 20:10:30 +08:00
Ganlin Zhao d6998dc1a8 fix(query): fix unique/last/first number of param check
TD-16134
2022-05-30 14:57:29 +03:00
Ganlin Zhao 0a98735a08
Merge pull request #13235 from taosdata/TD-16122/fix
fix(query): fix multiple aggregate function issues
2022-05-30 17:48:52 +08:00
Ganlin Zhao 0b0042ff2a fix(query): restrict statecount/stateduration first param to be column
only

TD-16128
2022-05-30 17:17:00 +08:00
Ganlin Zhao a27d05f6e1 fix(query): change state_count/state_duration function name to
statecount/stateduration

TD-16110
2022-05-30 17:07:50 +08:00
Ganlin Zhao edf66a3572 fix(query): fix tail result incorrect when column containing null value
TD-16122
2022-05-30 16:56:43 +08:00
Haojun Liao 1652cd0ec2 enh(query): enable twa function in select clause. 2022-05-29 12:35:11 +08:00
Ganlin Zhao 2512b98c5a
Merge pull request #13165 from taosdata/fix/TD-16098
fix(query): fix diff function bool type crash
2022-05-28 21:24:07 +08:00
Xiaoyu Wang 71173081d3 Merge remote-tracking branch 'origin/3.0' into feature/3.0_async 2022-05-28 20:16:36 +08:00
Xiaoyu Wang 4432fa930f feat: parser adapts asynchronous interface 2022-05-28 19:56:06 +08:00
Ganlin Zhao 94109a3173 fix(query): fix diff function bool type crash
TD-16098
2022-05-28 18:55:07 +08:00
Ganlin Zhao 9c3c2f4b65
Merge pull request #13154 from taosdata/fix/TD-16074
fix(query): fix apercentile parameter check
2022-05-28 15:56:30 +08:00
Ganlin Zhao 75f2d3952a fix(query): apercentile algo string should not include var header 2022-05-28 14:47:13 +08:00
Ganlin Zhao b350d0025d
Merge pull request #13144 from taosdata/fix/TD-15892
fix(query): restrict diff function ignore_negative types to integer
2022-05-28 14:42:52 +08:00
Ganlin Zhao 693488a511 fix(query): fix apercentile parameter check
TD-16074
2022-05-28 14:39:10 +08:00
Ganlin Zhao 26ceeac789 fix(query): restrict diff function ignore_negative types to integer
TD-16066
2022-05-28 11:38:09 +08:00
Ganlin Zhao 06a5408190
Merge pull request #13113 from taosdata/fix/TD-15892
fix(query): fix avg used in group by NULL value calculated as nan
2022-05-27 23:32:37 +08:00
Ganlin Zhao d11303916b fix(query): fix avg used in group by NULL value calculated as nan
TD-15892
2022-05-27 22:59:17 +08:00
Ganlin Zhao 3b9e21558d
Merge pull request #13102 from taosdata/fix/TD-16034
fix(query): fix diff function result type to avoid overflow
2022-05-27 22:33:15 +08:00
Ganlin Zhao 266da48c5a fix(query): fix diff function result type to avoid overflow
TD-16068
2022-05-27 19:43:13 +08:00
Ganlin Zhao 17748c0cb7
Merge pull request #13097 from taosdata/fix/TD-16034
fix(query): fix diff function param check
2022-05-27 19:05:43 +08:00
Ganlin Zhao 1f6c6b119d fix(query): fix csum function more than 1 param crash
TD-16065
2022-05-27 18:40:41 +08:00
Ganlin Zhao 25eb6dbeef fix(query): diff function first param can only be column
TD-16067
2022-05-27 18:27:24 +08:00
Ganlin Zhao 0b9c9834f5 fix(query): diff function ignore_negative param can only be 0 or 1
TD-16066
2022-05-27 18:11:03 +08:00
Ganlin Zhao ecb3d055da
Merge pull request #13084 from taosdata/fix/TD-16034
fix(queyr): fix tail function parameter restriction
2022-05-27 17:44:31 +08:00
Ganlin Zhao dc17e5553c fix(query): eliminate diff function result nan/inf in case of overflow
TD-16053
2022-05-27 15:48:12 +08:00
Ganlin Zhao de6f6a1e35 fix(query): eliminate csum/mavg result nan/inf in case of overflow
TD-16053
2022-05-27 15:29:33 +08:00
Ganlin Zhao 8035d02d92 fix(queyr): fix tail function parameter restriction
TD-16035
2022-05-27 15:07:12 +08:00
Ganlin Zhao c03ea81bcf
Merge pull request #13076 from taosdata/fix/TD-16034
fix(query): fix unique function NULL value not hashable handling
2022-05-27 13:56:27 +08:00
Ganlin Zhao 1d57820693 fix(query): fix unique function NULL value not hashable handling
TD-16034
2022-05-27 12:09:48 +08:00
Ganlin Zhao f4272b5ae4
Merge pull request #13033 from taosdata/fix/TD-15957
fix(query): fix first(*) result incorrect for all NULL entry tables
2022-05-26 22:13:29 +08:00
Ganlin Zhao 45bbfbfdf7
Merge pull request #13029 from taosdata/fix/TD-16018
fix(query): fix elapsed function time_unit cannot be smaller than db precision
2022-05-26 21:42:20 +08:00
Ganlin Zhao 2ed001ce68
Merge pull request #13010 from taosdata/fix/TD-15923
fix(query): fix avg/sum function result overflown output inf/nan
2022-05-26 21:17:42 +08:00
Haojun Liao 593c79d512 fix(query): add finalize for first function. 2022-05-26 18:15:20 +08:00
Ganlin Zhao b7729cf6e3 fix(query): fix first(*) result incorrect for all NULL entry tables;
TD-15957
2022-05-26 17:58:46 +08:00
Ganlin Zhao f08365e2b0 fix(query): fix cast function error msg
TD-16016
2022-05-26 17:30:00 +08:00
Ganlin Zhao ed6eae4d58 fix(query): fix elapsed function time_unit cannot be smaller than db
precision

TD-16018
2022-05-26 17:13:13 +08:00
Ganlin Zhao 998980079f fix(query): fix sum/avg function floating type overflow 2022-05-26 16:23:29 +08:00
Ganlin Zhao 067731b763 Merge branch '3.0' into feature/3.0_glzhao 2022-05-26 12:22:56 +08:00
Ganlin Zhao 72d9b07894 fix(query): fix avg/sum function result overflown output inf/nan
TD-15923
2022-05-26 11:36:07 +08:00
Haojun Liao a02bf52295
Merge pull request #12989 from taosdata/feature/3_liaohj
fix(query): check for invalid parameters of substr function.
2022-05-26 11:03:50 +08:00
Ganlin Zhao 0f27d39156
Merge pull request #12971 from taosdata/fix/TD-15977
fix(query): restrict top/bottom function column type and first param must be column
2022-05-26 09:51:42 +08:00
Haojun Liao e5bb56752a fix(query): check for invalid parameters of substr function. 2022-05-25 23:09:03 +08:00
Xiaoyu Wang 6d3f066540 feat: sql command 'drop cgroup' 2022-05-25 21:23:13 +08:00
Xiaoyu Wang 070f60409b feat: sql command 'drop cgroup' 2022-05-25 21:20:11 +08:00
Ganlin Zhao 1a784b3c01 fix(query): restrict top/bottom function column type and first param
must be column

TD-15977
2022-05-25 14:44:27 +08:00
Ganlin Zhao def5680ee6
Merge pull request #12968 from taosdata/enh/TD-15976
enh(query): reserve aggregate function constant param as value node in client.
2022-05-25 14:20:02 +08:00
Ganlin Zhao 220253e604 enh(query): reserve aggregate function constant param as value node in
client.

TD-15976
2022-05-25 13:30:26 +08:00
Ganlin Zhao 635711669f Revert "enh(query): reserve aggregate function constant param as value node in"
This reverts commit e0224da580.
2022-05-25 11:01:46 +08:00
Ganlin Zhao e0224da580 enh(query): reserve aggregate function constant param as value node in
client.

TD-15976
2022-05-25 10:59:27 +08:00
54liuyao 0778bf8857 stream session operator 2022-05-25 09:05:03 +08:00
Ganlin Zhao 424ff4a685 Merge branch '3.0' into feature/3.0_glzhao 2022-05-24 10:44:02 +08:00
Ganlin Zhao 21e3c0ce78 fix: fix windows compilation error 2022-05-24 10:41:11 +08:00
Ganlin Zhao 011bd32330 feat(query): add apercentile function 2022-05-23 22:48:15 +08:00
shenglian-zhou 6f302c2e4a
Merge pull request #12875 from taosdata/feature/udf
fix: udfd can not stop when taosd restarts very quickly
2022-05-23 20:44:51 +08:00
Xiaoyu Wang f95639227e
Merge pull request #12874 from taosdata/feature/3.0_wxy
feat: tag index filter plan
2022-05-23 20:29:25 +08:00
slzhou 757e4f31a1 fix: udfd can not stop when taosd restarts very quickly 2022-05-23 20:20:27 +08:00
Xiaoyu Wang dec850677b Merge remote-tracking branch 'origin/3.0' into feature/3.0_wxy 2022-05-23 19:50:33 +08:00
Xiaoyu Wang 8da52cbb04 feat: tag index filter plan 2022-05-23 19:50:08 +08:00
dapan1121 0c22c548d8 fix constant reserve issue 2022-05-23 19:06:22 +08:00
dapan1121 5fc9aa5ec1 Merge remote-tracking branch 'origin/3.0' into feature/3.0_constant 2022-05-23 16:17:59 +08:00
afwerar 93a0c69edc fix(os): win ctest error 2022-05-23 13:42:56 +08:00
dapan1121 9d6475fa09 Merge remote-tracking branch 'origin/3.0' into feature/async 2022-05-23 09:26:48 +08:00
shenglian-zhou cba190ccc3
Merge branch '3.0' into feature/udf 2022-05-22 21:40:12 +08:00
shenglian zhou 1e8a287662 feat: udf code refactoring 2022-05-22 16:37:06 +08:00
shenglian zhou e56a650877 udf: refactor code 2022-05-22 16:31:37 +08:00
shenglian zhou 7976b6abfd feat:udf refactoring 2022-05-22 16:29:41 +08:00
shenglian zhou 712217ab02 enhance: udf code refactoring 2022-05-22 16:08:39 +08:00
shenglian zhou 317db70052 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-22 16:04:21 +08:00
shenglian zhou 548838d9c3 enhance: udf code refactoring 2022-05-22 16:03:46 +08:00
afwerar 5acf419019 fix(os): win not close file ctest error 2022-05-21 23:47:39 +08:00
Xiaoyu Wang 89562acb01 feat: the length of binary/nchar type value is the same as that of column 2022-05-21 18:09:31 +08:00
Haojun Liao 25e2a9dd72 refactor: do some internal refactor, and set the correct intermediate buffer size for average function. 2022-05-20 23:58:34 +08:00
Ganlin Zhao 464a79ac50
Merge pull request #12747 from taosdata/feature/3.0_glzhao
fix(query): change unique function type to non-standard sql function
2022-05-20 15:16:52 +08:00
Ganlin Zhao 98092217ee fix: fix windows compilation error 2022-05-20 14:58:04 +08:00
Ganlin Zhao 3d34f7850e fix(query): change unique function type to non-standard sql function 2022-05-20 13:59:20 +08:00
Ganlin Zhao 9ca54b9478
Merge pull request #12723 from taosdata/feature/3.0_glzhao
feat(query): add unique function
2022-05-20 10:18:36 +08:00
dapan1121 7baf8eab29 catalog async api 2022-05-20 09:53:30 +08:00
Ganlin Zhao bf4826d9a8 feat(query): add unique function 2022-05-19 22:42:30 +08:00
Yihao Deng 040292cb80
Merge pull request #12718 from taosdata/enh/deleteDupCode
Enh/delete dup code
2022-05-19 22:12:46 +08:00
yihaoDeng 76b9a5acee fix: avoid invalid read/write 2022-05-19 21:56:39 +08:00
shenglian-zhou 5049ea17e6
Merge pull request #12717 from taosdata/feature/udf
fix: udf2 reuse old state when new input is all null
2022-05-19 21:11:38 +08:00
slzhou b5a419c25a Merge branch 'feature/udf' of github.com:taosdata/TDengine into feature/udf 2022-05-19 20:56:40 +08:00
slzhou c0fc53a9a8 fix: udf2 reuse old state when new input is null 2022-05-19 20:54:30 +08:00
shenglian-zhou 6649018519
Merge pull request #12707 from taosdata/feature/udf
fix: set hasResult when old state has result
2022-05-19 18:11:40 +08:00
slzhou 5a3f6b11e7 fix: set hasResult when old state has result 2022-05-19 17:48:34 +08:00
Haojun Liao f636806c2a other: merge 3.0 2022-05-19 17:07:01 +08:00
Haojun Liao e0b9da9c3d refactor: do some internal refactor. 2022-05-19 16:49:43 +08:00
Xiaoyu Wang 29bdba7298 fix: some problems of parser and planner 2022-05-19 14:26:10 +08:00
Ganlin Zhao fba964778b
Merge pull request #12651 from taosdata/feature/3.0_glzhao
enh(query): support sum(NULL), max(NULL), min(NULL), count(NULL)
2022-05-18 19:26:17 +08:00
Ganlin Zhao 8daaea58de feat(query): fix ci 2022-05-18 18:51:40 +08:00
slzhou 36dcc70f0d fix: improve udf function misuse stability 2022-05-18 18:21:32 +08:00
Ganlin Zhao 98a6792b99 Merge branch '3.0' into feature/3.0_glzhao 2022-05-18 16:54:19 +08:00
Ganlin Zhao e948d5a248 enh(query): support avg(NULL), stddev(NULL) 2022-05-18 16:35:13 +08:00
Ganlin Zhao a52e0027cf enh(query): support count(NULL) = 0 2022-05-18 16:14:57 +08:00
Ganlin Zhao 26c618e5ad enh(query): support sum(NULL), max(NULL), min(NULL) 2022-05-18 16:03:59 +08:00
Ganlin Zhao 36370a2339
Merge pull request #12612 from taosdata/feature/3.0_glzhao
fix(query): fix elapsed parameter number
2022-05-18 14:34:53 +08:00
shenglian-zhou 7655f51ff8
Merge pull request #12631 from taosdata/feature/udf
fix: udfc checks output type and output bytes when executing scalar f…
2022-05-18 12:43:01 +08:00
slzhou 950835e1fc fix: set correct udf output type when retrieve from mnode 2022-05-18 12:16:28 +08:00
Haojun Liao eeaea6a6dc
Merge pull request #12629 from taosdata/feature/3.0_liaohj
fix(query): add parameters check for top/bottom functoin.
2022-05-18 12:11:08 +08:00
slzhou 00c11b01fe fix: udfc checks output type and output bytes when executing scalar function 2022-05-18 11:43:03 +08:00
Haojun Liao 325959bd27 fix(query): add parameters check for top/bottom functoin. 2022-05-18 11:01:39 +08:00
shenglian-zhou ea3e48827f
Merge pull request #12627 from taosdata/feature/udf
fix: release udf func handle when udf agg failure
2022-05-18 10:44:47 +08:00
slzhou d5c30f5ea5 fix: release udf func handle when udf agg failure 2022-05-18 10:29:32 +08:00
Haojun Liao 52f6a66ba5 fix(query): fix some syntax error. 2022-05-17 22:58:17 +08:00
Haojun Liao a918f19329 Merge branch '3.0' into feature/3.0_liaohj 2022-05-17 22:47:52 +08:00
shenglian-zhou 81ea237b4f
Merge pull request #12605 from taosdata/feature/udf
fix: trigger ci test
2022-05-17 22:28:41 +08:00
Ganlin Zhao 485a1aedd5 fix(query): fix elapsed parameter number 2022-05-17 22:27:46 +08:00
slzhou b4e23c34a4 feat: udfc check udf function interbuf size and result size 2022-05-17 22:10:51 +08:00
Ganlin Zhao 2f128fa3c9
Merge pull request #12607 from taosdata/feature/3.0_glzhao
feat(query): add elapsed function
2022-05-17 21:37:11 +08:00
Ganlin Zhao 1b0b410f98 feat(query): add elapsed function 2022-05-17 21:22:21 +08:00
Shengliang Guan 88094cfec7 Merge remote-tracking branch 'origin/3.0' into fix/mnode 2022-05-17 20:56:54 +08:00
slzhou 3e4f9db185 fix: trigger ci test 2022-05-17 20:53:36 +08:00
slzhou d46c393598 fix: mnode not ready for connect from udfd 2022-05-17 20:47:40 +08:00
slzhou ee2f3e7e05 fix: clear invalid udf func handle 2022-05-17 20:01:01 +08:00
slzhou e73b1c4889 fix: support more rows with udf unit test 2022-05-17 19:22:58 +08:00
Haojun Liao aefa9bd891 refactor: do some internal refactor. 2022-05-17 16:53:55 +08:00
Shengliang Guan d7e895448d fix: conflicts after refactor SRpcMsg 2022-05-17 16:32:23 +08:00
slzhou 2d0b29d295 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-17 15:42:52 +08:00
slzhou 7967f2d7c0 fix: sanitizing tudf memory 2022-05-17 15:19:32 +08:00
slzhou e8880e1544 fix: udf memory sanitizing 2022-05-17 15:14:16 +08:00
Zhiqiang Wang 9a7126e0e2
Merge pull request #12580 from taosdata/fix/ZhiqiangWang/fix-15602-fix-win-str-to-int64-error
fix(os): win str to int64 error
2022-05-17 14:18:21 +08:00
afwerar b7ca4f7710 fix(os): win str to int64 error 2022-05-17 13:50:16 +08:00
Ganlin Zhao 766b1a3b46
Merge pull request #12575 from taosdata/feature/3.0_glzhao
feat(query): add HYPERLOGLOG function
2022-05-17 13:45:14 +08:00
slzhou d668ee7b91 fix: aggregate memory leaking 2022-05-17 12:03:37 +08:00
Ganlin Zhao 1eb59a2fed feat(query): add hll function 2022-05-17 11:36:12 +08:00
slzhou c94c43951e fix: sanitize udf memory usage 2022-05-17 11:13:11 +08:00
Ganlin Zhao 67e93ef90c Revert "feat(query): add HYPERLOGLOG function"
This reverts commit 267ed293d7.
2022-05-17 10:33:58 +08:00
Ganlin Zhao 267ed293d7 feat(query): add HYPERLOGLOG function 2022-05-17 10:33:19 +08:00
slzhou 47f0c6db6a enhance: refine udfd code 2022-05-17 10:08:15 +08:00
slzhou 5a15151b87 feat: refine udfd 2022-05-17 10:00:13 +08:00
Ganlin Zhao 9dcf9248d7 feat(query): add HYPERLOGLOG function 2022-05-16 22:43:06 +08:00
Ganlin Zhao a3f5e4723a
Merge pull request #12552 from taosdata/feature/3.0_glzhao
feat(query): add tail function
2022-05-16 21:50:31 +08:00
Ganlin Zhao ede4a57c99 enh(query): tail function handle offset param 2022-05-16 19:36:04 +08:00
slzhou c245309e6e feat: enhance udfd epset processing with connect msg and callback epset parameter 2022-05-16 19:03:36 +08:00
Ganlin Zhao a281da1379 fix(query): fix tail function points larger than total rows issue 2022-05-16 17:02:01 +08:00
Ganlin Zhao 21b5f72340 fix(query): fix tail function NULL value handing. 2022-05-16 16:35:59 +08:00
Ganlin Zhao 4be158b391 feat(query): add tail function 2022-05-16 14:29:12 +08:00
slzhou 8284d8b8e0 fix: accquire rpc client in the same way as dmInitClient 2022-05-16 13:27:04 +08:00
slzhou 9cb2473580 feat: enhance udf func stub with last ref time 2022-05-16 11:15:57 +08:00
Ganlin Zhao 3ef067ff03 feat(query): add tail function 2022-05-16 11:03:15 +08:00
slzhou 4ae7a16749 fix: teardown udf optimization 2022-05-16 09:24:35 +08:00
slzhou 8ce04a94f9 fix: change function name for tearing down udf handles 2022-05-16 09:06:08 +08:00
slzhou 5b35fcacd6 fix: teardown udf functions handles 2022-05-16 07:47:56 +08:00
slzhou 89ba943981 fix: change udf comment 2022-05-15 14:15:46 +08:00
slzhou 692ae29c6c fix: clean the udf handles cache when pipe error 2022-05-14 23:39:10 +08:00
slzhou 911cd1fe66 fix: reuse existing udf handles and teardown the handle later 2022-05-14 22:51:13 +08:00
slzhou cef0f74cb3 fix: udf aggregate function handle does not exist 2022-05-14 18:28:51 +08:00
slzhou 56cc2c06f9 fix: udf aggregate function handle does not exist 2022-05-14 18:28:24 +08:00
slzhou a58a0e79c6 fix: uv task error when the pipe is NULL 2022-05-14 18:09:44 +08:00
slzhou 7161919086 fix: finish uv task when event loop start uv task failed 2022-05-14 17:20:22 +08:00
slzhou 2a42fc66bc fix: udf task to queue whenever uv_write result 2022-05-14 16:51:16 +08:00
slzhou 8d1ddbd877 fix: remove from task queue before signalling caller 2022-05-14 15:42:21 +08:00
slzhou b53e7192fc fix: core caused by invalid total rows of data block when executing sql like select udf2(f2) from udf.t2 group by 1-udf1(f1) 2022-05-14 09:31:30 +08:00
Shengliang Guan 253651a521
Merge pull request #12449 from taosdata/feature/3.0_glzhao
feat(query): add sample function using reservoir sampling method
2022-05-13 23:27:07 +08:00
Ganlin Zhao c1666e7e02 feat(query): add sample function 2022-05-13 22:08:37 +08:00
Ganlin Zhao 18ac565a93 feat(query): add sample function 2022-05-13 22:06:22 +08:00
Shengliang Guan 2258916b1d test: recover tmq/basic5.py 2022-05-13 22:02:55 +08:00
shenglian-zhou 095217a204
Merge pull request #12445 from taosdata/feature/udf
feat: fix erros of square int overflow and block capacity set before filling a new column
2022-05-13 21:59:02 +08:00
afwerar 0815843e94 fix(os): make taosd.exe taos.exe run on windows. 2022-05-13 21:42:16 +08:00
Ganlin Zhao 315a875208 feat(query): add sample function 2022-05-13 21:36:33 +08:00
Ganlin Zhao d24254fb84 feat(query): add sample function 2022-05-13 21:13:35 +08:00
slzhou a6900a7e96 fix : udf2 overflow for large int multiply large int 2022-05-13 21:02:32 +08:00
Shengliang Guan d4e0a27ef3 Merge remote-tracking branch 'origin/3.0' into feature/dnode 2022-05-13 17:46:51 +08:00
Haojun Liao 86031c1985 fix(query): add the repeat scan flag check during aggregate executor. 2022-05-13 12:17:09 +08:00
Shengliang Guan 992a64e7c8 Merge remote-tracking branch 'origin/3.0' into feature/dnode 2022-05-13 11:09:02 +08:00
shenglian-zhou c5faaca906
Merge pull request #12407 from taosdata/feature/udf
fix: udf2 support int and double data type
2022-05-13 09:49:13 +08:00
Haojun Liao e468363ce1
Merge pull request #12409 from taosdata/feature/3.0_liaohj
fix(query): close read fd when finishing scanning data files.
2022-05-13 01:25:38 +08:00
Haojun Liao aae019d18a fix(query): close read fd when finishing scanning data files. 2022-05-13 00:32:02 +08:00
Haojun Liao 3678aa9094
Merge pull request #12391 from taosdata/feature/3.0_liaohj
fix(query): fix special pseudo column caused taosd crash.
2022-05-12 23:49:21 +08:00
slzhou 73d55e7c6b fix: udf2 support int and double data type 2022-05-12 22:58:49 +08:00
Ganlin Zhao 8b9dd500bd
Merge pull request #12401 from taosdata/feature/3.0_glzhao
feat(query): add mavg function
2022-05-12 22:53:36 +08:00
Ganlin Zhao 1e503061ed feat(query): add mavg function 2022-05-12 21:25:53 +08:00
Ganlin Zhao 8d21c662aa feat(query): add mavg function 2022-05-12 21:16:34 +08:00
Ganlin Zhao 818e3636d6 feat(query): add mavg function 2022-05-12 20:40:17 +08:00
Haojun Liao 69e9f6972c other: add some missing modification files to git. 2022-05-12 17:47:01 +08:00
Haojun Liao 4eaf1f5bb6 refactor: do some internal refactor. 2022-05-12 17:34:07 +08:00
Shengliang Guan 47970ff8a4 refactor: node mgmt 2022-05-12 17:30:57 +08:00
Shengliang Guan dd87e8f7b9 refactor: node mgmt 2022-05-12 17:12:40 +08:00
slzhou@taodata.com 278f5262ce Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-12 16:50:26 +08:00
shenglian-zhou 3516696a66
Merge pull request #12382 from taosdata/feature/udf
feature(udf): follow tsdb_code error convention
2022-05-12 16:50:03 +08:00
slzhou@taodata.com 8927155013 feat:add udf dedicated errors 2022-05-12 16:49:31 +08:00
slzhou@taodata.com c95d3cdb36 feature(udf):error follows tsdb_code standard 2022-05-12 15:43:32 +08:00
shenglian-zhou 7357c80720
Merge pull request #12377 from taosdata/feature/udf
feature(udf): column has member hasNull
2022-05-12 15:39:21 +08:00
Ganlin Zhao aba7e4a6f6
Merge pull request #12376 from taosdata/feature/3.0_glzhao
feat(query): add csum function
2022-05-12 15:18:49 +08:00