Commit Graph

576 Commits

Author SHA1 Message Date
Haojun Liao 29608b0866
Merge pull request #11610 from taosdata/feature/3.0_liaohj
fix(query): avoid the output result overlap within the project operator buffer.
2022-04-19 16:27:28 +08:00
Ganlin Zhao a70181194b refactor(query): refactor string functions
TD-14836
TD-14833
2022-04-19 13:15:55 +08:00
Haojun Liao a036d2f3ff fix(query): fix the bug caused by refactor in first/last function implementation. 2022-04-19 13:07:23 +08:00
wangmm0220 b96082fe1b refactor: fix compare logic 2022-04-19 09:46:12 +08:00
wangmm0220 49c3057221 refactor: merge from 3.0 2022-04-18 21:15:57 +08:00
wangmm0220 ad29963423 refactor: modify json compare in where condition 2022-04-18 21:00:35 +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 1c0211880f refactor(query): support timefunction arithmetic operation with boolean
constant
2022-04-18 18:47:30 +08:00
Ganlin Zhao 315a6c0364 refactor(query): constant NULL value processing logic
TD-14802
TD-14803
2022-04-18 17:36:48 +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
wangmm0220 d2d29d992f refactor: add compare logic for json value 2022-04-18 14:25:19 +08:00
wangmm0220 e2c6bf41df refactor: add compare logic for json value 2022-04-18 13:36:01 +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
wangmm0220 b7bd654c77 refactor: add compare logic for json value 2022-04-16 21:24:07 +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 29327a6d66 feat(query): support now()/today() arithmetic operation with time duration
TD-14243
2022-04-16 11:03:18 +08:00
wangmm0220 73c34da280 Merge branch '3.0' into feature/TD-13041 2022-04-16 09:30:26 +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
wangmm0220 93cbee6970 Merge branch '3.0' into feature/TD-13041 2022-04-14 18:25:08 +08:00
wangmm0220 32577d4196 refactor: add json tag function for sql parser 2022-04-14 18:24:21 +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 ff70238e38
Merge pull request #11413 from taosdata/feature/TD-14242
feat(query): add cast function
2022-04-12 14:34:33 +08:00
Ganlin Zhao a59b558331 feat(query): add cast function
TD-14242
2022-04-11 20:22:53 +08:00
Haojun Liao a3be085135
Merge pull request #11392 from taosdata/feature/3.0_liaohj
Feature/3.0 liaohj
2022-04-11 19:32:12 +08:00
Haojun Liao 2624fa2711 fix[query]: invalid write. 2022-04-11 17:36:10 +08:00
Haojun Liao 8240efda4c fix[query]: enable filter on nchar type. 2022-04-11 17:03:41 +08:00
afwerar 2662a3b69d [TD-13254]<fix>: make 3.0 grant. 2022-04-10 19:08:16 +08:00
Haojun Liao 9c9082ce3f fix[query]: fix the filter not active bug. 2022-04-09 23:58:49 +08:00
Haojun Liao d6338ca773
Merge branch '3.0' into feature/3.0_liaohj 2022-04-09 18:30:05 +08:00
dapan1121 ac60b0408a
Merge pull request #11342 from taosdata/feature/qnode
feature/qnode
2022-04-09 17:13:07 +08:00
Haojun Liao 6a245710c9 other: merge 3.0 branch. 2022-04-09 16:24:44 +08:00
dapan1121 3295507835 feature/qnode 2022-04-09 16:14:01 +08:00
dapan1121 f207646a64
Merge pull request #11338 from taosdata/feature/qnode
feature/qnode
2022-04-09 14:38:58 +08:00
dapan1121 257b729757 feature/qnode 2022-04-09 13:36:36 +08:00
Haojun Liao 6af7e1810f Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-09 11:56:45 +08:00
WANG MINGMING 41392e9e4a
Merge branch '3.0' into feature/TD-14422 2022-04-09 10:18:52 +08:00
Haojun Liao 94e19cc32a <fix>[query]: fix scalar function calculate bug in scalar module. td-14576 2022-04-09 10:10:56 +08:00
Ganlin Zhao f072afe717
Merge pull request #11326 from taosdata/fix/TD-14572
<fix>[query]: fix length/char_length data block pointer with proper offset
2022-04-08 21:16:59 +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
Haojun Liao 8a62f5fa73 <fix>[query]: fix filter caused taosd crash.td-14566. 2022-04-08 19:41:55 +08:00
WANG MINGMING bcbba6d0ae
Merge branch '3.0' into feature/TD-14422 2022-04-08 17:28:03 +08:00
dapan1121 519b6ca0f3
Merge pull request #11305 from taosdata/feature/qnode
Feature/qnode
2022-04-08 17:21:33 +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
dapan1121 460036a0d4 feature/qnode 2022-04-06 17:50:03 +08:00
dapan1121 2b5c4788d1 Merge remote-tracking branch 'origin/3.0' into feature/qnode 2022-04-06 15:28:36 +08:00
dapan1121 398a41d09b feature/qnode 2022-04-06 15:20:38 +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
dapan1121 21542194c6 Merge remote-tracking branch 'origin/3.0' into feature/qnode 2022-04-06 11:32:46 +08:00
dapan1121 2c6dec89d2 feature/qnode 2022-04-06 11:32:21 +08:00
Haojun Liao ddc63b9f27 [td-14393] fix error. 2022-04-04 15:45:32 +08:00
Xiaoyu Wang aaf35118f6
Merge pull request #11222 from taosdata/feature/3.0_wxy
integrate constant calculate
2022-04-02 20:35:10 +08:00
Xiaoyu Wang 469cd23f43 integrate constant calculate 2022-04-02 07:57:44 -04: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 db87cabd15 Merge branch '3.0' into feature/3.0_glzhao 2022-04-02 13:59:29 +08:00
Ganlin Zhao 70b0139017 Merge branch '3.0' into feature/3.0_glzhao 2022-04-02 13:57:21 +08:00
Haojun Liao 27817adbdc
Merge pull request #11199 from taosdata/feature/3.0_liaohj
[td-14393] refactor and support filter condition in where clause.
2022-04-02 11:18:58 +08:00
Haojun Liao 55f93d2179 [td-14393] refactor and support filter condition in where clause. 2022-04-02 10:43:28 +08:00
Ganlin Zhao 5a1548bf15 [TD-14241]: substr function adoption 2022-04-02 10:40:15 +08:00
Haojun Liao 34f5f3fbfe
Merge pull request #11194 from taosdata/feature/3.0_liaohj
[td-14428] return correct length for both nchar and varchar type.
2022-04-01 23:26:21 +08:00
Haojun Liao 751cad9c2a [td-14393] fix bug. 2022-04-01 20:19:40 +08:00
Haojun Liao 632f3b1cbf
Merge pull request #11188 from taosdata/feature/3.0_liaohj
[td-13039] support limit/offset
2022-04-01 19:07:22 +08:00
Ganlin Zhao 3295a58894 [TD-14423]<fix>: abs(0.000) return -0.00000 2022-04-01 17:27:56 +08:00
Haojun Liao 7b0dfc6c4e [td-13039] support limit/offset 2022-04-01 17:21:24 +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
dapan1121 a60ce69b02 Merge remote-tracking branch 'origin/3.0' into feature/qnode 2022-04-01 11:21:40 +08:00
Ganlin Zhao 89aba48960 [TD-14241]: concat function adoption 2022-03-31 19:04:00 +08:00
Haojun Liao 02e097dc5c [td-14426] fix bug. 2022-03-31 17:36:51 +08:00
dapan1121 5fae817e38 Merge remote-tracking branch 'origin/3.0' into feature/qnode 2022-03-30 17:22:11 +08:00
dapan1121 6982f2b7bd feature/qnode 2022-03-30 17:09:30 +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 7cb632cbf0 fix math function unit test 2022-03-29 17:31:09 +08:00
Ganlin Zhao 0c243e658e math functions working with shell 2022-03-29 17:30:44 +08:00
Ganlin Zhao a0ba1eb1f2 Merge branch 'feature/3.0_liaohj' of github.com:taosdata/TDengine into feature/3.0_liaohj 2022-03-28 15:45:21 +08:00
Ganlin Zhao b601542094 refactor pow/log 2022-03-28 15:45:11 +08:00
Haojun Liao 9d5e46b6a7 [td-13039] fix compiling error. 2022-03-28 14:52:16 +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 43692ece87 [td-13039] fix memory leak. 2022-03-26 22:49:52 +08:00
Haojun Liao 66b47472f0 [td-13039] fix memory leak and invlad memory operations. 2022-03-26 22:46:12 +08:00
Haojun Liao 36faa27dac [td-13039] refactor. 2022-03-26 22:24:05 +08:00
Haojun Liao 23db83f5f4 [td-13039] support arithmetic query. 2022-03-26 22:13:14 +08:00
Haojun Liao 3162f93070 [td-13039] refactor scalar operator. 2022-03-26 17:26:55 +08:00
Haojun Liao d4fa582040 [td-13039] fix bug in scalar filter. 2022-03-26 14:13:26 +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 eef9b77490 [TD-14240]<feature>: add math functions 2022-03-25 16:31:41 +08:00
Ganlin Zhao c08ccb75df [TD-14240]<feature>: add math functions 2022-03-25 16:24:48 +08:00
Ganlin Zhao 79002a6e3d [TD-14240]<feature>: add math functions 2022-03-25 16:24:36 +08:00
afwerar 394178da68 [TD-13767]<fix>: only use iconv. 2022-03-18 13:23:48 +08:00
Shuduo Sang 23bef711fc
Feature/sangshuduo/td 13063 3.0 windows (#10720)
* [TD-13063]<feature>: 3.0 on Windows

* add pthread in contrib

* fix linux compile

* fix osSemaphore

* add gnu regex for Windows

* fix compile error for Windows

* support arm platform

* port more OS files

* fix for Windows compile

* port more files

* fix macOS on x86_64

* port osFile

* port osSemaphone.h

* port osSocket.c

* port tconfig.c

* port ttimer.c

* add couple files
2022-03-15 21:35:04 +08:00
Haojun Liao 02981347e4
Merge pull request #10569 from taosdata/feature/3.0_liaohj
Feature/3.0 liaohj
2022-03-12 15:47:52 +08:00
afwerar e04ef027ab [TD-13768]<fix>: redefine time api. 2022-03-11 16:49:07 +08:00
Haojun Liao c62dfe6460 [td-13039] merge 3.0. 2022-03-11 14:59:42 +08:00
Xiaoyu Wang 066c39d571 TD-13747 merge 3.0 2022-03-09 21:35:24 -05:00
afwerar c6de196769 [TD-13765]<fix>: redefine rand api. 2022-03-10 00:36:30 +08:00
Xiaoyu Wang b3d0283048 TD-13747 merge 3.0 2022-03-06 22:31:34 -05:00
Haojun Liao 024dd9966f [td-13039] refactor. 2022-03-04 19:21:30 +08:00
Haojun Liao cde3e97061 [td-13039] merge 3.0. 2022-03-04 14:31:21 +08:00
Haojun Liao 92da01a8ba [td-13039] refactor. 2022-03-04 13:25:39 +08:00
Xiaoyu Wang 0a9675e454 TD-13037 merge 3.0 2022-03-03 22:44:45 -05:00
afwerar 35b3edaea5 [TD-13756]<fix>: file system stat access func. 2022-03-04 00:04:57 +08:00
Xiaoyu Wang 213793be49 TD-13747 merge 3.0 2022-03-02 04:24:59 -05:00
dapan1121 e0faac42c4 Merge remote-tracking branch 'origin/3.0' into feature/qnode 2022-03-01 09:50:44 +08:00
dapan1121 5f3e439ddc feature/qnode 2022-03-01 09:42:28 +08:00
dapan1121 c0c4b5c8c8 feature/qnode 2022-03-01 09:30:23 +08:00
dapan1121 5dc9d9776c feature/qnode 2022-02-28 19:35:22 +08:00
Shengliang Guan 5891779fe1 common 2022-02-28 17:55:07 +08:00
dapan1121 454ef8dfdd feature/qnode 2022-02-28 16:52:48 +08:00
dapan1121 97e7a41a3f feature/qnode 2022-02-28 15:50:22 +08:00
Haojun Liao c35a3fa35f
Merge pull request #10388 from taosdata/feature/3.0_liaohj
Feature/3.0 liaohj
2022-02-28 15:23:57 +08:00
Haojun Liao 6afebf9a1c [td-13039] merge 3.0 2022-02-28 10:16:59 +08:00
dapan1121 cda6986125 Merge remote-tracking branch 'origin/3.0' into feature/qnode 2022-02-28 09:39:13 +08:00
dapan1121 62e5ecd6d4 feature/qnode 2022-02-28 09:38:44 +08:00
dapan 2d58e1fed7 feature/qnode 2022-02-27 17:54:47 +08:00
Xiaoyu Wang b6f5d879e2 Merge remote-tracking branch 'origin/3.0' into feature/3.0_wxy 2022-02-26 05:53:15 -05:00
dapan1121 7129ba9cbd feature/qnode 2022-02-25 19:15:23 +08:00
Xiaoyu Wang 7377c27367 TD-13495 physical plan refactoring 2022-02-25 03:29:40 -05:00
Haojun Liao 40da10fabd [td-13039] merge 3.0 2022-02-25 10:30:44 +08:00
Shengliang Guan e25637fe29 Merge remote-tracking branch 'origin/3.0' into feature/config 2022-02-25 10:05:54 +08:00
Shengliang Guan 612dd71918 os env 2022-02-24 21:27:13 +08:00
Xiaoyu Wang 2fb0af814d merge 3.0 2022-02-24 05:39:41 -05:00
Xiaoyu Wang dafe0dae7a merge 3.0 2022-02-24 05:23:35 -05:00
Xiaoyu Wang 49143d079e TD-13495 physical plan refactoring 2022-02-24 05:18:41 -05:00
Haojun Liao 90d231eb7e [td-13039] merge 3.0 2022-02-24 17:58:16 +08:00
Shengliang Guan 5ee328d181
Merge pull request #10382 from taosdata/feature/config
config
2022-02-24 14:32:38 +08:00
Shengliang Guan beae4899f2 os env 2022-02-24 11:35:22 +08:00
dapan1121 38fd1a657c Merge remote-tracking branch 'origin/3.0' into feature/qnode 2022-02-24 10:10:02 +08:00
dapan1121 0526e5a675 feature/qnode 2022-02-24 10:09:33 +08:00
dapan1121 fe1b4dcde0 feature/qnode 2022-02-23 18:32:10 +08:00
Shengliang Guan a74188f456 fix conflicts 2022-02-23 17:34:06 +08:00
dapan1121 7bd38e3343 feature/qnode 2022-02-23 15:11:09 +08:00
dapan1121 ffaf48c073 feature/qnode 2022-02-23 14:59:15 +08:00
dapan1121 51dd5d407a feature/qnode 2022-02-23 14:58:45 +08:00
dapan1121 aa556cb462 feature/qnode 2022-02-23 14:34:17 +08:00
dapan1121 1ce00b1b87 feature/qnode 2022-02-23 10:52:53 +08:00
dapan1121 1e194d2249 feature/qnode 2022-02-23 09:24:41 +08:00
dapan1121 93baf85a4f feature/qnode 2022-02-22 19:42:35 +08:00
dapan1121 8f7b375b54 feature/qnode 2022-02-21 19:31:14 +08:00
dapan1121 7c1e4d319d feature/qnode 2022-02-21 14:28:56 +08:00
dapan1121 c9ba7e02ce feature/qnode 2022-02-21 10:46:14 +08:00
dapan 46b7eb0dee feature/qnode 2022-02-19 17:27:10 +08:00
dapan1121 8d413f09f9 feature/qnode 2022-02-18 19:43:36 +08:00
dapan1121 6d04b954ac feature/qnode 2022-02-18 08:48:54 +08:00
dapan1121 8f199e0eb8 feature/qnode 2022-02-17 19:30:43 +08:00