Commit Graph

216 Commits

Author SHA1 Message Date
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 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 680400834a refactor code 2022-07-14 19:17:28 +08:00
Ganlin Zhao b87eb0abb3 feat(query): add stddev function scalar version
TD-17344
2022-07-14 17:39:03 +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 dd8f235e97 feat(query): add count function scalar version
TD-17344
2022-07-13 17:47:56 +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
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
Ganlin Zhao af6a9abfde refactor(query): remove redundant param check on function execution
context

TD-17029
2022-07-04 17:14:22 +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 085ace59e0 fix:to_json() function 2022-07-01 16:47:54 +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 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
Ganlin Zhao 290d5b3f14 refactor(query): function adoption to us/ns db precision
TD-16436
2022-06-29 17:50:33 +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 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
afwerar 9dff7b93c6 test: fix sim test error 2022-06-21 20:04:55 +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
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 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
Cary Xu f2b4cca23d fix: init buffer to avoid invalid write 2022-05-29 01:10:32 +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
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
dapan1121 0c22c548d8 fix constant reserve issue 2022-05-23 19:06:22 +08:00
afwerar 51721dfc47 fix(os): win run error 2022-05-19 10:37:11 +08:00
Haojun Liao a41f6a3479 fix(query): fix the bug that special pseudo column tbname, along with other normal columns in select clause, cause taosd crash. 2022-05-12 17:33:36 +08:00
Ganlin Zhao b3df34ef08 Revert "fix(query): fix cast function regression brought by other changes"
This reverts commit e000addc2c.
2022-05-09 15:16:47 +08:00
Ganlin Zhao 8bbcb02855 Merge branch 'feature/3.0_glzhao' of github.com:taosdata/TDengine into feature/3.0_glzhao 2022-05-09 15:16:09 +08:00
Ganlin Zhao b4c7118a51 fix(query): fix cast ncahr bug 2022-05-09 15:13:43 +08:00
Ganlin Zhao e000addc2c fix(query): fix cast function regression brought by other changes 2022-05-09 13:34:26 +08:00
Haojun Liao 06fb98f0a4 fix(query): revise the length of var data type. 2022-05-08 17:18:11 +08:00
Ganlin Zhao 291d6d25eb fix(query): fix invalid write for concat/concat_ws function
TD-15319
TD-15346
2022-05-07 20:56:43 +08:00
Haojun Liao 8ffdd1b715 other: merged with 3.0 branch. 2022-05-06 17:26:52 +08:00
Haojun Liao e4f0a0fc67 fix(query): enable table name query for super table. 2022-05-05 23:47:44 +08:00
Ganlin Zhao 26285015cb fix(query): fix cast function constant convert to nchar result length 2022-05-05 20:11:34 +08:00
Ganlin Zhao 8430a94c81 Merge branch '3.0' into feature/3.0_glzhao 2022-05-05 18:37:47 +08:00
Ganlin Zhao f904e5912e fix(query): fix cast constant to nchar type value output incorrect
TD-15138
2022-05-05 17:43:22 +08:00
Haojun Liao 77f1779820
Merge pull request #12042 from taosdata/feature/3.0_liaohj
fix(query): alter the type of result of the length function.
2022-04-29 14:00:16 +08:00
Haojun Liao 5711656304 fix(query): alter the type of result of the length function. 2022-04-29 11:55:25 +08:00
afwerar f4f11fdc01 fix(os): fix win open file error. 2022-04-28 19:46:37 +08:00
Ganlin Zhao 5587eb375c
Merge pull request #11993 from taosdata/fix/TD-15172
fix(query): fix bug in multi-input math functions
2022-04-28 17:26:44 +08:00
Ganlin Zhao ad93fc6344 fix(query): fix bug in multi-input math functions 2022-04-28 13:32:03 +08:00
Ganlin Zhao b70c019824 fix(query): fix bug in multi-input math functions 2022-04-28 13:29:50 +08:00
dapan1121 5935c9cda4 Merge branch 'feature/qnode' of github.com:taosdata/TDengine into feature/qnode 2022-04-28 11:49:09 +08:00
dapan1121 1850dc0371 stmt query 2022-04-28 11:47:55 +08:00
Ganlin Zhao c211427e2e fix(query): replace nan/inf result in math functions
TD-15172
2022-04-27 19:03:41 +08:00
Ganlin Zhao 21feb85915 fix(query): fix timezone function output string incomplete
TD-15116
2022-04-25 12:42:26 +08:00
Ganlin Zhao 8ace6c9bdf
Merge pull request #11811 from taosdata/fix/TD-15107
fix(query): fix math function NULL values is not properly appended
2022-04-24 22:25:01 +08:00
Ganlin Zhao aadbba44cc fix(query): fix math function NULL values is not properly appended
TD-15056
2022-04-24 21:17:30 +08:00
Xiaoyu Wang a9ab3c8940 enh: order by primary key optimize 2022-04-24 16:31:17 +08:00
WANG MINGMING 4291981b54
Merge pull request #11690 from taosdata/feature/TD-13041
fix: bugs in to_json
2022-04-22 18:23:27 +08:00
Ganlin Zhao 85bbe4e832
Merge pull request #11755 from taosdata/feature/3.0_glzhao
refactor(query): limit cast var type length to 1000
2022-04-22 16:30:11 +08:00
Ganlin Zhao a601081e6d refactor(query): limit cast var type length to 1000 2022-04-22 16:04:17 +08:00
Ganlin Zhao f6c21cd39a
Merge pull request #11743 from taosdata/feature/3.0_glzhao
fix(query): fix timediff bug
2022-04-22 14:54:51 +08:00
Ganlin Zhao 87bcbe8f52 fix(query): fix timediff bug
TD-14802
2022-04-22 14:25:15 +08:00
afwerar fc24521621 fix(os): windows compile 3.0. 2022-04-22 09:54:27 +08:00
Ganlin Zhao f8b67140ca
Merge pull request #11710 from taosdata/fix/TD-14770
fix(query): fix cast binary->binary trailing characters
2022-04-21 15:38:12 +08:00
Ganlin Zhao 8c4e3b62b0 fix(query): fix cast binary->binary trailing characters 2022-04-21 15:19:58 +08:00
wangmm0220 d2a1203eeb refactor: fix bugs in to_json 2022-04-20 20:39:19 +08:00
WANG MINGMING 66400aff66
Merge pull request #11671 from taosdata/feature/TD-13041
feat: json tag
2022-04-20 20:22:59 +08:00
Ganlin Zhao 1403fa1d6e refactor(query): add parameter combination check for cast 2022-04-20 17:35:49 +08:00
wangmm0220 0fb41733ea refactor: merge from 3.0 2022-04-20 17:08:52 +08:00
Ganlin Zhao 0db26f2f96 fix(query): substr function param overflow
TD-14760
2022-04-20 14:30:04 +08:00