Commit Graph

506 Commits

Author SHA1 Message Date
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
dapan1121 3101633bbf fix: fix scalar crash issue 2022-07-18 08:47:05 +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 810be53374 fix(query): fix state operator check 2022-07-16 17:01:44 +08:00
Ganlin Zhao 3bcd669fcd feat(query): add statecount function scalar version 2022-07-16 16:46:03 +08:00
Ganlin Zhao 790cecf123 feat(query): add diff function scalar version 2022-07-16 15:04:45 +08:00
Ganlin Zhao 2d1428eadd feat(query): add csum function scalar version
TD-17344
2022-07-16 14:13:45 +08:00
Ganlin Zhao 6d63d1b5b8 fix count scalar function behavior 2022-07-16 14:07:32 +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 ee5d2c1d82 refactor 2022-07-16 11:46:49 +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 cbd2d8f8a2 fix(query): add spread function scalar version
TD-17344
2022-07-15 17:54:45 +08:00
Ganlin Zhao a5a3b96e58 enable select agg function without from clause 2022-07-15 16:50:51 +08:00
Ganlin Zhao 14ae310fea fix issue 2022-07-15 16:47:52 +08:00
Ganlin Zhao 0377f865db fix conflict 2022-07-15 16:45:30 +08:00
Ganlin Zhao 9e49a0012d feat(query): add percentile/apercentile scalar version
TD-17344
2022-07-15 15:52:32 +08:00
Ganlin Zhao b8a4878b00 fix(query): add leastsquares function scalar version 2022-07-15 14:34:40 +08:00
Ganlin Zhao 4ff107812f feat(query): add avg function scalar version
TD-17344
2022-07-15 10:00:35 +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 680400834a refactor code 2022-07-14 19:17:28 +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
Ganlin Zhao b87eb0abb3 feat(query): add stddev function scalar version
TD-17344
2022-07-14 17:39:03 +08:00
wangmm0220 a15bd187bf fix:error in json tag 2022-07-14 16:24:16 +08:00
Ganlin Zhao 29ff569191 enable scalar function check to prevent crash 2022-07-14 14:04:06 +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
Ganlin Zhao 8b1e56389c feat(query): add min function scalar version
TD-17344
2022-07-14 10:26:00 +08:00
Ganlin Zhao 80f175bdbe feat(query): add count function scalar version
TD-17344
2022-07-13 19:46:56 +08:00
Ganlin Zhao 4bc3770cd3 fix code format 2022-07-13 18:16:41 +08:00
Ganlin Zhao 099f2d2c98 remove scalar function check to allow agg function execute 2022-07-13 18:14:27 +08:00
Ganlin Zhao dd8f235e97 feat(query): add count function scalar version
TD-17344
2022-07-13 17:47:56 +08:00
dapan1121 ca754adaa6 fix: add agg processing 2022-07-13 17:14:04 +08:00
dapan1121 8c83f07fe4 fix: fix natural timestamp issue 2022-07-13 16:43:50 +08:00
dapan1121 25f80f8d3e fix: fix null bytes issue 2022-07-12 17:10:55 +08:00
dapan1121 b824dc71a0 fix: fix invalid time range issue 2022-07-11 11:23:15 +08:00
Xiaoyu Wang 6a3124a5f9 Merge remote-tracking branch 'origin/enh/in' into feature/3.0_debug_wxy 2022-07-10 17:31:37 +08:00
dapan1121 6cd21fe04b enh: enhance in operator 2022-07-10 16:52:11 +08:00
Xiaoyu Wang bd210bf392 Merge remote-tracking branch 'origin/3.0' into feature/3.0_debug_wxy 2022-07-10 16:45:14 +08:00
dapan1121 f530607359 Merge branch '3.0' into fix/bugs 2022-07-10 11:18:01 +08:00
Xiaoyu Wang 2454298b0b Merge remote-tracking branch 'origin/3.0' into feature/3.0_debug_wxy 2022-07-10 10:24:55 +08:00
Haojun Liao c5ccdfd4e9 fix(query): set the correct resource free flag. 2022-07-09 11:06:41 +08:00
Xiaoyu Wang f99a61a464 fix: some problem of parser and planner 2022-07-08 21:05:19 +08:00
dapan1121 17f5f3ee82 fix: fix server_status() issue 2022-07-08 17:51:03 +08:00
Xiaoyu Wang df06d22cb3 fix: some problem of parser and planner 2022-07-08 17:35:11 +08:00
Haojun Liao 3e81daf578 fix(query): fix memory leak. 2022-07-08 17:28:37 +08:00
Ganlin Zhao 6251bd7ea9 fix(query): add "1b" timeunit in function param to represent nanosecond
TD-17012
2022-07-05 17:18:37 +08:00
Ganlin Zhao 16a0c79ee4 fix(query): add "1b" timeunit in function param to represent nanosecond
TD-17012
2022-07-05 16:44:14 +08:00
dapan1121 7f0cc9ca22
Merge pull request #14509 from taosdata/enh/addconverttype
enh: add type convert api
2022-07-04 19:52:35 +08:00
Ganlin Zhao cce9f262aa
Merge pull request #14507 from taosdata/fix/TD-16948
refactor(query): remove redundant param check in function execution context
2022-07-04 18:52:53 +08:00
Ganlin Zhao 6e98552eca fix(query): fix timetruncate/timediff local variable overwrite issue
TD-17032
2022-07-04 17:54:49 +08:00
dapan1121 57836d8bb2 enh: add type convert api 2022-07-04 17:40:20 +08:00
Ganlin Zhao af6a9abfde refactor(query): remove redundant param check on function execution
context

TD-17029
2022-07-04 17:14:22 +08:00
Zhiqiang Wang b45702be6f
Merge pull request #14466 from taosdata/fix/ZhiqiangWang/TD-13064-add-Mac-compile-support
os: add Mac compile support
2022-07-02 18:02:28 +08:00
WANG MINGMING e4a711975d
Merge pull request #14458 from taosdata/feature/TD-13041
fix: erro in json in operator
2022-07-02 17:52:43 +08:00
afwerar b9a1c6744c os: add Mac compile support 2022-07-02 17:40:23 +08:00
wangmm0220 8390080074 fix: error in empty string in operator 2022-07-02 16:16:18 +08: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 35698da9c9 enh(query): add cast from binary/nchar -> timestamp for date-time string 2022-07-02 15:47:42 +08:00
wangmm0220 3dafc6556c fix: erro in json in operator 2022-07-02 14:47:07 +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
dapan1121 5b018f399a
Merge pull request #14418 from taosdata/hotfix/streamcrash
fix: fix stream crash issue
2022-07-01 13:22:20 +08:00
afwerar 4e8f3db596 os: replace win qsort func 2022-07-01 11:54:21 +08:00
dapan1121 ba265d51b8 fix: fix stream crash issue 2022-07-01 10:29:37 +08:00
wangmm0220 e751e20c76 fix:merge from 3.0 2022-06-30 16:25:43 +08:00
Ganlin Zhao 4d59cfec76 Merge branch '3.0' into refactor/db_precision 2022-06-29 20:50:06 +08:00
Ganlin Zhao b1670f8b82 refactor(query): function adoption to us/ns db precision
TD-16436
2022-06-29 20:49:36 +08:00
Ganlin Zhao 4c23223447 refactor(query): function adoption to us/ns db precision
TD-16436
2022-06-29 20:46:51 +08:00
Ganlin Zhao 5d9e01c771
Merge pull request #14366 from taosdata/refactor/db_precision
refactor(query): function adoption to us/ns db precision
2022-06-29 20:28:53 +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 26e6d7ccf7
Merge pull request #14358 from taosdata/refactor/db_precision
refactor(query): function adoption to us/ns db precision
2022-06-29 19:49:04 +08:00
Ganlin Zhao 9e75569870 refactor(query): function adoption to us/ns db precision
TD-16436
2022-06-29 19:48:37 +08:00
Ganlin Zhao 290d5b3f14 refactor(query): function adoption to us/ns db precision
TD-16436
2022-06-29 17:50:33 +08:00
wangmm0220 8e5099c44c Merge branch '3.0' into feature/TD-13041 2022-06-27 20:02:00 +08:00
dapan1121 d402716465 enh: stop query 2022-06-27 18:29:28 +08:00
wangmm0220 5557c2ef93 fix: add limit for json operator 2022-06-27 16:17:58 +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
wangmm0220 7acf012253 fix:memory error 2022-06-25 13:51:43 +08:00
Ganlin Zhao b139daf08b add cast function support ->bool 2022-06-25 13:32:14 +08:00
Ganlin Zhao 3b9953f483 cast function support ->float, ->double 2022-06-25 12:15:17 +08:00
Ganlin Zhao 4a7938e9ff cast support nchar->binary, binary/nchar->timestamp 2022-06-25 12:05:17 +08:00
Ganlin Zhao b1f16fca4e Merge branch '3.0' into enh/cast_function 2022-06-25 10:48:16 +08:00
Ganlin Zhao 4f629ec68b enh(query): enhance cast function to support more types
TD-15473
2022-06-24 16:53:56 +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
Ganlin Zhao 9399f5fd70 fix: ceil/floor/round function invalid input handling 2022-06-23 20:28:51 +08:00
Ganlin Zhao 60d0229d3d fix: abs function handling invalid constant input
TD-15216
2022-06-23 20:18:47 +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 1278282a78 fix(query): math function invalid input should have null output
TD-15216
2022-06-23 19:53:54 +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
Haojun Liao 2d31d3cb43 other: merge 3.0 2022-06-23 10:37:07 +08:00
Haojun Liao 324eecdd99 fix(query): prepare the buffer before assigning result. 2022-06-22 20:24:26 +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
WANG MINGMING 15eb9c485e
Merge pull request #14069 from taosdata/3.0
feat:merge from 3.0
2022-06-22 16:33:15 +08:00
wangmm0220 db34294bed opt: filter by tag 2022-06-22 16:32:10 +08:00
afwerar 9dff7b93c6 test: fix sim test error 2022-06-21 20:04:55 +08:00
dapan1121 31f3bed347 support index cache 2022-06-11 20:39:16 +08:00
Zhiqiang Wang 8f30cdfe9c
Merge pull request #13635 from taosdata/fix/ZhiqiangWang/TD-16262-add-win32-taosd-case
fix(os): add win32 taosd case
2022-06-09 17:55:15 +08:00
afwerar d95b7a3dc1 fix(os): add win32 taosd case 2022-06-09 11:48:41 +08:00
Ganlin Zhao ea264a6629
Merge pull request #13623 from taosdata/fix/TD-16363
fix(query): fix to_iso8601 function append format in negative timezone or "z"
2022-06-09 11:32:29 +08:00
dapan1121 d4c7154cde Merge branch '3.0' into feature/qnode 2022-06-09 09:10:37 +08:00
dapan1121 ef18a45d99 in data type convert 2022-06-09 09:09:48 +08:00
Ganlin Zhao 51c9a6fac7 fix(query): fix to_iso8601 function append format in "-hh:mm", "-hhmm"
"-hh", "z" when digits exceeds 10 digits
2022-06-08 22:42:10 +08:00
dapan1121 1a078d5d56 fix in issue 2022-06-08 18:36:46 +08:00
wangmm0220 8e4690455d fix:return false in is ture operator if result is null 2022-06-08 14:06:42 +08:00
dapan1121 308f6a5682 Merge branch '3.0' into feature/qnode 2022-06-08 08:57:58 +08:00
dapan1121 f5da576a89 fix in compare issue 2022-06-08 08:57:20 +08:00
wangmm0220 74bc4cc3f0 fix:return false in is ture operator if result is null 2022-06-07 15:33:37 +08:00
wangmm0220 89b2a64435 fix: fix error in json and add test cases for json 2022-06-06 21:14:24 +08:00
wangmm0220 5d042b674a fix: fix error in json and add test cases for json 2022-06-06 17:57:26 +08:00
wangmm0220 0232394386 fix: fix error in json and add test cases for json 2022-06-06 17:55:14 +08:00
wangmm0220 a3a959043e feat: test arith/logic operator for json 2022-06-05 22:25:10 +08:00
wangmm0220 30b8bd1b16 feat: add sort/group logic for json 2022-06-05 21:31:54 +08:00
wangmm0220 c9daa37886 feat: add sort/group logic for json 2022-06-05 16:52:28 +08:00
wangmm0220 84fd45c3bb feat: add sort/group logic for json 2022-06-05 14:18:40 +08:00
wangmm0220 9e1cd759f3 feat: add sort/group logic for json 2022-06-05 13:50:31 +08:00
afwerar 490889f8e7 fix(os): win python case error 2022-06-03 16:13:06 +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
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 b0bdd6ab95
Merge pull request #13383 from taosdata/fix/TD-16171
enh(query): to_iso8601 function add timezone parameter
2022-06-01 21:17:06 +08:00
Ganlin Zhao 61d2079870 fix(query): concat/concat_ws function null constant handling
TD-16071
2022-06-01 13:09:58 +00:00
Ganlin Zhao e04c09d4ab enh(query): to_iso8601 param handing 2022-06-01 10:32:51 +00:00
Ganlin Zhao 7d3ef94fd8 enh(query): to_iso8601 add server side handling of timezone param
TD-16152
2022-06-01 16:09:23 +08:00
wangmm0220 19b0932781 feat:merge from 3.0 2022-05-31 23:46:04 +08:00
wangmm0220 f6b700ff45 feat:add new logic for new tag format 2022-05-31 22:30:08 +08:00
wangmm0220 f89ce48e66 feat:add new logic for new tag format 2022-05-31 20:18:02 +08:00
wangmm0220 816cea07f9 feat:add new logic for new tag format 2022-05-31 17:49:33 +08:00
Cary Xu f2b4cca23d fix: init buffer to avoid invalid write 2022-05-29 01:10:32 +08:00
dapan1121 5da1ead67b
Merge pull request #13174 from taosdata/feature/qnode
fix: fix memory leak
2022-05-28 22:44:00 +08:00
dapan1121 5ce7dd2a4d qnode load 2022-05-28 22:13:26 +08:00
Haojun Liao 041cb3f055 fix(query): set correct start offset of binary data when trimming first value. 2022-05-28 20:10:18 +08:00
Cary Xu 9b4c9e4802 enh: tag refactor for normal tags 2022-05-28 17:16:04 +08:00
Haojun Liao 49ac4b0e08 fix(query): set correct buffer size. 2022-05-28 15:19:10 +08:00
Haojun Liao b137be9898 fix(query): prepare enough buffer before convert string. 2022-05-26 17:17:56 +08:00