Commit Graph

216 Commits

Author SHA1 Message Date
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
Ganlin Zhao cec0f0d171 refactor(query): refactor scalar function
TD-14802
2022-04-20 10:26:38 +08:00
Ganlin Zhao 8649bbca02
Merge pull request #11642 from taosdata/fix/TD-14843
refactor(query): refactor cast function
2022-04-19 21:03:06 +08:00
Ganlin Zhao f53db3d3b9 fix(query): fix cast function NULL value handling logic 2022-04-19 20:40:45 +08:00
Ganlin Zhao 11028921b6 refactor(query): refactor cast function
TD-14837
TD-14843
TD-14904
2022-04-19 18:16:29 +08:00
Ganlin Zhao a70181194b refactor(query): refactor string functions
TD-14836
TD-14833
2022-04-19 13:15:55 +08:00
wangmm0220 49c3057221 refactor: merge from 3.0 2022-04-18 21:15:57 +08:00
Ganlin Zhao 00ae854c78
fix(query): fix time function related bugs (#11604)
* fix(query): fix timediff args cannot be integer values

TD-14798

* fix(query): fix timediff/timetruncate/to_unixtimestamp handling NULL value and empty string

TD-14802
TD-14803

* refactor(query): constant NULL value processing logic

TD-14802
TD-14803

* refactor(query): support timefunction arithmetic operation with boolean
constant
2022-04-18 19:20:08 +08:00
Ganlin Zhao f3b8bc8152 fix(query): fix timediff/timetruncate/to_unixtimestamp handling NULL value and empty string
TD-14802
TD-14803
2022-04-18 16:01:21 +08:00
wangmm0220 24f805c5c2 refactor: add to_json function 2022-04-18 15:54:40 +08:00
Ganlin Zhao d57da814cc fix(query): fix timediff args cannot be integer values
TD-14798
2022-04-18 14:35:45 +08:00
Ganlin Zhao 53aedbb163 Merge branch '3.0' into hotfix/glzhao_3.0 2022-04-18 11:39:18 +08:00
Ganlin Zhao 6105dfc934 refactor(query): refactor concat/concat_ws and param check 2022-04-18 11:39:08 +08:00
wade zhang 3f0f31c4c2
Merge pull request #11552 from taosdata/feature/TD-14243
feat(query): support timezone function and now/today function arithmetic operation in select clause
2022-04-16 18:54:18 +08:00
Xiaoyu Wang c40b590ad8 enh: window clause validity check 2022-04-16 17:27:54 +08:00
Ganlin Zhao e655a3cc1d feat(query): support timezone() function
TD-14243
2022-04-15 13:15:29 +08:00
Ganlin Zhao 0439e4f9f7 Merge branch '3.0' into feature/TD-14243 2022-04-15 10:16:55 +08:00
Ganlin Zhao ca3ce404af feat(query): support now()/today() function in select clause
TD-14243
2022-04-14 21:38:33 +08:00
Ganlin Zhao b6ec83d3c2
Merge pull request #11492 from taosdata/fix/TD-14732
fix(query): taosd crash when concat has NULL inputs
2022-04-14 16:27:08 +08:00
Ganlin Zhao bfa4d8a313 fix(query): taosd crash when concat has NULL inputs
TD-14732
2022-04-14 16:13:09 +08:00
Ganlin Zhao b355e2b3c8 feat(query): add today()/today() + duration in insert clause
TD-14243
2022-04-14 12:53:59 +08:00
Ganlin Zhao eabfc7d31c feat(query): add timediff function
TD-14243
2022-04-13 17:13:14 +08:00
Ganlin Zhao 9a09f15de8 feat(query): add timediff function
TD-14243
2022-04-13 16:57:58 +08:00
Ganlin Zhao 61b39204b5 feat(query): add timetruncate function
TD-14243
2022-04-13 14:14:46 +08:00
Ganlin Zhao c0b3607756 feat(query): add to_unixtimestamp function
TD-14243
2022-04-13 11:41:02 +08:00
Ganlin Zhao ef4d75f463 feat(query): add to_iso8601 function
TD-14243
2022-04-12 20:02:33 +08:00
Ganlin Zhao a59b558331 feat(query): add cast function
TD-14242
2022-04-11 20:22:53 +08:00
WANG MINGMING 41392e9e4a
Merge branch '3.0' into feature/TD-14422 2022-04-09 10:18:52 +08:00
Ganlin Zhao da2d8efc96 <fix>[query]: fix length/char_length data block pointer with proper offset
TD-14572
2022-04-08 20:56:00 +08:00
Ganlin Zhao 743649e1b7 <fix>[query]: fix length/char_length data block pointer with proper offset
TD-14572
2022-04-08 20:38:15 +08:00
wangmm0220 8df8c60f60 merge from 3.0 2022-04-08 10:58:39 +08:00
Ganlin Zhao 57c574e38a [TD-14575]<fix>: fix rtrim result not correct for nchar columns 2022-04-08 10:40:55 +08:00
wangmm0220 83eacf8d07 merge from 3.0 2022-04-06 18:38:19 +08:00
Ganlin Zhao 928cbcec7d
Merge pull request #11252 from taosdata/feature/3.0_glzhao
[TD-14241]<feature>: substr function refactor
2022-04-06 14:48:16 +08:00
Ganlin Zhao 76d1702213 [TD-14241]<feature>: substr function refactor 2022-04-06 13:47:04 +08:00
Ganlin Zhao 5e2dbe83e7
Merge pull request #11250 from taosdata/feature/3.0_glzhao
[TD-14241]<feature>: concat/concat_ws support nchar column wtih constant
2022-04-06 12:43:12 +08:00
Ganlin Zhao 98cc544e5b [TD-14241]<feature>: concat/concat_ws support nchar column wtih constant 2022-04-06 11:49:47 +08:00
Haojun Liao ddc63b9f27 [td-14393] fix error. 2022-04-04 15:45:32 +08:00
wangmm0220 5aa3467e2b merge from 3.0 2022-04-02 19:02:45 +08:00
Ganlin Zhao 8bcdf8e200 [TD-14241]<feature>: refactor string functions 2022-04-02 18:34:17 +08:00
wangmm0220 12c3a10a9b fix error in order by logic & fix no return error 2022-04-02 14:29:43 +08:00
Ganlin Zhao 70b0139017 Merge branch '3.0' into feature/3.0_glzhao 2022-04-02 13:57:21 +08:00
Ganlin Zhao 5a1548bf15 [TD-14241]: substr function adoption 2022-04-02 10:40:15 +08:00
Ganlin Zhao 3295a58894 [TD-14423]<fix>: abs(0.000) return -0.00000 2022-04-01 17:27:56 +08:00
Ganlin Zhao 64184611d7 [TD-14241]: ltrim/rtrim function adoption 2022-04-01 17:13:41 +08:00
Ganlin Zhao c846c6ebf3 [TD-14241]: lower/upper function adoption 2022-04-01 17:01:13 +08:00
Ganlin Zhao dddf621aa7 [TD-14241]: concat/concat_ws fix input has both constant and column
issue
2022-04-01 16:06:22 +08:00
Ganlin Zhao 6eb6cfe279 [TD-14241]: concat_ws function adoption 2022-04-01 14:36:45 +08:00
Ganlin Zhao 89aba48960 [TD-14241]: concat function adoption 2022-03-31 19:04:00 +08:00
Ganlin Zhao 89abd4e349 [TD-14241]: add string functions 2022-03-30 16:08:38 +08:00
Ganlin Zhao b0eefba1b3 [TD-14241]: add string functions 2022-03-30 14:42:32 +08:00
Ganlin Zhao 87fefa9e15 [TD-14241]: add string functions 2022-03-30 14:03:54 +08:00
Haojun Liao 39036ea512 [td-13039] support pseudo column in interval query. 2022-03-30 13:41:15 +08:00
Haojun Liao f659130551 [td-13039] merge 3.0. 2022-03-29 19:12:34 +08:00
Ganlin Zhao 0c243e658e math functions working with shell 2022-03-29 17:30:44 +08:00
Ganlin Zhao b601542094 refactor pow/log 2022-03-28 15:45:11 +08:00
Haojun Liao 0daa0de073 [td-13039] support scalar function. 2022-03-27 22:43:07 +08:00
Haojun Liao 6cd2d69d14 [td-13039] fix compiler error. 2022-03-27 15:47:03 +08:00
Haojun Liao b9c33dade2 [td-13039] merge 3.0. 2022-03-27 15:30:46 +08:00
Haojun Liao 400989c040 [td-13039] refactor scalar function. 2022-03-26 13:43:02 +08:00
Ganlin Zhao 8a2623e962 [TD-14240]<feature>: add math functions 2022-03-26 10:43:57 +08:00
Ganlin Zhao aaa2d2094a Merge branch '3.0' into 3.0_glzhao_math_func 2022-03-26 10:24:33 +08:00
afwerar 222db126bc [TD-13758]<fix>: redefine memory api. 2022-03-26 00:29:53 +08:00
Ganlin Zhao 303a853c0c [TD-14240]<feature>: add math functions 2022-03-25 20:09:26 +08:00
Ganlin Zhao 79002a6e3d [TD-14240]<feature>: add math functions 2022-03-25 16:24:36 +08:00
dapan1121 aa556cb462 feature/qnode 2022-02-23 14:34:17 +08:00
dapan1121 8f199e0eb8 feature/qnode 2022-02-17 19:30:43 +08:00