Commit Graph

376 Commits

Author SHA1 Message Date
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
shenglian zhou 69eaa0979d Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-24 21:22:06 +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
Ganlin Zhao 770be0364f Merge branch '3.0' into feature/3.0_glzhao 2022-04-24 20:15:26 +08:00
slzhou a0852402a9 api change : remove udfc handle and epset 2022-04-24 17:36:07 +08:00
slzhou a9d47ded0a more udf info 2022-04-24 15:11:12 +08:00
slzhou 3799c5c62f epset and retrieve so from mnode 2022-04-24 10:53:50 +08:00
slzhou 3bc432a52e change libudf1.so path temporaly 2022-04-24 08:50:40 +08:00
shenglian zhou 35f062a5da Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-23 22:16:45 +08:00
shenglian zhou 52cc00987b udfd pipe name generating with dnode id through environment passing 2022-04-23 22:16:26 +08:00
Haojun Liao 4b36763429 refactor(query): do some internal refactor. 2022-04-22 22:43:07 +08:00
Haojun Liao d83ce4044a
Merge pull request #11754 from taosdata/feature/3.0_liaohj
fix(driver): the user specified port that is in taos_connect API isn't active.
2022-04-22 19:33:23 +08:00
slzhou 400436ffdd fix hash map key length error 2022-04-22 18:41:56 +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 05f1e64108 Merge branch '3.0' into feature/3.0_glzhao 2022-04-22 17:17:46 +08:00
shenglian-zhou 0d5dd77f59
Merge pull request #11748 from taosdata/3.0_udfd
feat(udf):fix start/stop/restart udfd
2022-04-22 17:09:53 +08:00
Ganlin Zhao b96d372e81 feat(query): add avg function
TD-14295
2022-04-22 16:56:04 +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
slzhou a395b21578 fix start/stop/restart udfd 2022-04-22 15:21:26 +08:00
Haojun Liao e28b75b8d4 refactor(query): do some internal refactor. 2022-04-22 15:07:20 +08:00
slzhou f41edf3be8 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-22 11:14:36 +08:00
slzhou d537322e41 udf scalar api change 2022-04-22 10:10:14 +08:00
afwerar fc24521621 fix(os): windows compile 3.0. 2022-04-22 09:54:27 +08:00
slzhou 49dc204076 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-22 08:14:09 +08:00
slzhou 7c54b69977 sigkill to kill taosd causes udfd to exit 2022-04-22 08:13:45 +08:00
Haojun Liao fc799fa115 other: merge 3.0 2022-04-21 17:51:00 +08:00
Haojun Liao 9a038322b6 refactor(query): do some internal refactor. 2022-04-21 17:44:08 +08:00
dapan1121 36a8382b8e feature/qnode 2022-04-21 15:33:07 +08:00
Haojun Liao e14142d114 refactor(query): do some internal refactor. 2022-04-21 13:57:32 +08:00
dapan1121 a284d8fc4a feature/qnode 2022-04-21 13:37:18 +08:00
slzhou a018c70117 udfd proxy init and close for udf calling 2022-04-21 13:10:46 +08:00
slzhou d4734eb18e Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-21 09:45:54 +08:00
slzhou b4d3008da3 remove udfd start/stop from tudf.c 2022-04-21 09:45:37 +08:00
shenglian-zhou babef48c8a
Merge pull request #11687 from taosdata/3.0_udfd
feat(udf):dnode start/stop/restart udfd and vnode create/destory proxy to udfd
2022-04-21 09:10:16 +08:00
Haojun Liao 46a3a58fac refactor:do some internal refactor. 2022-04-20 20:41:53 +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
slzhou d8ba1d32f4 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-20 19:29:17 +08:00
slzhou ca34398c43 prepare for dnode start/stop/restart udfd and vnode/snode/qnode split 2022-04-20 19:27:39 +08:00
Ganlin Zhao 7aac52e7f1
Merge pull request #11677 from taosdata/fix/TD-14770
refactor(query): add parameter combination check for cast
2022-04-20 18:34:23 +08:00
Xiaoyu Wang 311b407260
Merge pull request #11678 from taosdata/feature/3.0_wxy
feat: sql command 'create function'
2022-04-20 18:33:23 +08:00
slzhou 177b1c96a5 udfd final program ongoing 2022-04-20 17:46:29 +08:00
Xiaoyu Wang 6f377189d0 feat: sql command 'create function' 2022-04-20 17:43:02 +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
Haojun Liao 490f7f3b14
Merge pull request #11664 from taosdata/feature/3.0_liaohj
fix(query): fix invalid write in distinct query.
2022-04-20 16:15:22 +08:00
Haojun Liao 3e80cead0b fix:fix an link error. 2022-04-20 15:21:51 +08:00
Haojun Liao f933aa01cb fix:fix some compiling errors. 2022-04-20 15:20:08 +08:00
Haojun Liao 343988beeb refactor: do some internal refactor. 2022-04-20 14:59:06 +08:00
Shengliang Guan 76883aa42f refactor: check db options 2022-04-20 10:25:03 +08:00
Shengliang Guan 8213315fdd
Merge pull request #11643 from taosdata/feature/3.0_liaohj
fix(query): fix the crash caused by the complex having clause
2022-04-20 00:00:46 +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 a8ea6063d5
Merge pull request #11646 from taosdata/fix/TD-14905
fix(query): fix timezone function with trailing characters
2022-04-19 20:41:44 +08:00
Ganlin Zhao 43aecff7ea fix(query): fix timezone function with trailing characters 2022-04-19 20:15:29 +08:00
Haojun Liao 6956c46226 Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-19 19:46:23 +08:00
Ganlin Zhao f9947be46f refactor(query): refactor cast function
TD-14837
TD-14843
TD-14904
2022-04-19 18:22:59 +08:00
Ganlin Zhao 11028921b6 refactor(query): refactor cast function
TD-14837
TD-14843
TD-14904
2022-04-19 18:16:29 +08:00
Haojun Liao b122538268 refactor: do some internal refactor. 2022-04-19 18:06:59 +08:00
shenglian-zhou b62b17865a
Merge pull request #11572 from taosdata/3.0_udfd
feat(udf): UDF service refactoring with new interface
2022-04-19 17:29:57 +08:00
slzhou 0776427f45 runUdf passed 2022-04-19 16:51:02 +08:00
Haojun Liao 7f0077cad5 feat(query): a new builtin aggregate function is added. 2022-04-19 16:32:19 +08:00
Haojun Liao 1c94bbb5e4 enh(query): set the status of stream scan operator. 2022-04-19 16:11:16 +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
slzhou f839f1def6 Merge remote-tracking branch 'origin/3.0' into 3.0_udfd_sub1 2022-04-19 12:01:10 +08:00
slzhou 71983725c3 befor debugging teardown 2022-04-19 12:00:59 +08:00
Haojun Liao 5b835514ee Merge branch '3.0' into feature/3.0_liaohj 2022-04-19 10:15:48 +08:00
Haojun Liao 2305b05869 refactor(query): do some internal refactor for executor. 2022-04-19 10:12:30 +08:00
shenglian zhou eae11bf8f0 handle uv read error 2022-04-19 09:03:04 +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
wangmm0220 24f805c5c2 refactor: add to_json function 2022-04-18 15:54:40 +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
shenglian zhou d9580cff53 runudf call scalar 2022-04-17 17:37:07 +08:00
slzhou 18943125f4 call udf for scalar and aggregate 2022-04-17 15:07:11 +08:00
shenglian zhou 4817f54ae9 SSDataBlock and SUdfInterBuf message passing between taosd/udfd 2022-04-16 23:34:40 +08:00
Haojun Liao 902fcb0c0b refactor(query): refactor code. 2022-04-16 19:10:21 +08:00
Haojun Liao 30602b8cfb Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-16 19:02: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
shenglian zhou 964d944ae2 Merge branch '3.0' into 3.0_udfd 2022-04-16 17:02:09 +08:00
Haojun Liao d40f830b77 enh(query): optimize the data block load algorithm in table scan operator. 2022-04-16 16:06:48 +08:00
Haojun Liao be4d72bf80 refactor(query): refactor executor module to optimization the block load filter routine. 2022-04-16 15:15:28 +08:00
slzhou 4e6caa3495 before using ssdatablock for udfd/udfdc communication 2022-04-16 14:19:33 +08:00
Ganlin Zhao ad7323166a Merge branch '3.0' into feature/TD-14243 2022-04-16 12:51:49 +08:00
Xiaoyu Wang e2164bf8cb feat: CREATE STREAM statement implement, and syntax of JSON data type implement. 2022-04-15 19:35:46 +08:00
slzhou 7ed7624306 after trying to retrive udf info from mnode 2022-04-15 18:31:57 +08:00
Xiaoyu Wang ba1f3f7815 feat: CREATE STREAM statement implement, and syntax of JSON data type implement. 2022-04-15 18:30:01 +08:00
Haojun Liao 5029cd67b2 ehn(query): add the file data block load optimization check. 2022-04-15 18:06:49 +08:00
Haojun Liao 684db8eba8 refactor(query): refactor some variable name and macro definitions. 2022-04-15 14:01:43 +08:00
Ganlin Zhao e655a3cc1d feat(query): support timezone() function
TD-14243
2022-04-15 13:15:29 +08:00
slzhou 5ea40c9d0e save for poweroff 2022-04-15 12:19:22 +08:00
slzhou ed597e6e54 pass compilation before udf call refinement 2022-04-15 11:19:00 +08:00
Ganlin Zhao 0439e4f9f7 Merge branch '3.0' into feature/TD-14243 2022-04-15 10:16:55 +08:00
slzhou 7a9393093d Merge branch '3.0' into 3.0_udfd 2022-04-15 08:21:56 +08:00
Ganlin Zhao ca3ce404af feat(query): support now()/today() function in select clause
TD-14243
2022-04-14 21:38:33 +08:00
shenglian zhou 946b565e99 sync home and office 2022-04-14 19:29:41 +08:00
Xiaoyu Wang 9e05fdbd7b enh(query): increase the validity check of function parameters 2022-04-14 18:18:23 +08:00
Xiaoyu Wang 64790e4de9 enh(query): increase the validity check of function parameters 2022-04-14 16:19:29 +08:00
Xiaoyu Wang 8118a20649 enh(query): increase the validity check of function parameters 2022-04-14 15:49:57 +08:00
shenglian zhou 3f62f8a333 sync home and office 2022-04-13 19:45:33 +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 a497670f29
Merge pull request #11440 from taosdata/feature/TD-14243
feat(query): add to_unixtimestamp function
2022-04-13 12:38:57 +08:00
Ganlin Zhao c0b3607756 feat(query): add to_unixtimestamp function
TD-14243
2022-04-13 11:41:02 +08:00
Ganlin Zhao 14a4fb036c
Merge pull request #11429 from taosdata/feature/TD-14243
feat(query): add to_iso8601 function
2022-04-12 20:36:45 +08:00
Ganlin Zhao ef4d75f463 feat(query): add to_iso8601 function
TD-14243
2022-04-12 20:02:33 +08:00
Haojun Liao 684a1f23ad
Merge pull request #11424 from taosdata/feature/3.0_liaohj
fix(query): handle crash of taosd caused by a complex expression in GROUP BY clauses.
2022-04-12 18:20:28 +08:00
Haojun Liao b9bf2515f5 fix(query): handle crash of taosd caused by a complex expression in GROUP BY clauses. 2022-04-12 17:55:17 +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
Xiaoyu Wang 5a70bddb6f
Merge pull request #11411 from taosdata/feature/3.0_wxy
enh(query):optimize scanning through SQL functions
2022-04-12 13:34:03 +08:00
Xiaoyu Wang 93d379638c enh(query):optimize scanning through SQL functions 2022-04-12 13:10:47 +08:00
Haojun Liao 6f6adece3e
Merge pull request #11398 from taosdata/feature/3.0_liaohj
fix[query]: enable min/max function to be applied to bool data type.
2022-04-11 22:54:55 +08:00
Ganlin Zhao a59b558331 feat(query): add cast function
TD-14242
2022-04-11 20:22:53 +08:00
Haojun Liao 74e5ebc322 fix[query]: enable min/max function to be applied to bool data type. 2022-04-11 19:50:34 +08:00
Xiaoyu Wang 147675c71f
Merge pull request #11385 from taosdata/feature/3.0_wxy
enh: set datablock desc timestamp precision, and fix the bug of constant calculation
2022-04-11 18:05:43 +08:00
Xiaoyu Wang 983e4aa010 set datablock desc timestamp precision 2022-04-11 17:42:05 +08:00
Haojun Liao 115ac26c8e
Merge pull request #11379 from taosdata/feature/3.0_liaohj
fix[query]:enable sum function to be applied to bool data type.
2022-04-11 15:49:50 +08:00
Haojun Liao 6b681d79d4 fix[query]:enable sum function to be applied to bool data type. 2022-04-11 15:25:19 +08:00
Xiaoyu Wang cd75d1121a constant calc bugfix 2022-04-11 14:48:07 +08:00
shenglian zhou 6f5f6896a5 udfc destroy mutex after thread exit 2022-04-10 21:59:07 +08:00
shenglian zhou 4d59a4a57c Merge branch '3.0' into 3.0_udfd 2022-04-10 21:11:11 +08:00
Ganlin Zhao 6a734a74ac
Merge pull request #11365 from taosdata/feature/TD-14242
<feat>[query]: add cast function SQL syntax
2022-04-10 19:55:03 +08:00
Ganlin Zhao 5fb7a7955f Merge branch '3.0' into feature/TD-14242 2022-04-10 19:33:04 +08:00
Ganlin Zhao 03cce69b75 <feat>[query]: add cast function SQL syntax
TD-14242
2022-04-10 19:13:44 +08:00
afwerar 2662a3b69d [TD-13254]<fix>: make 3.0 grant. 2022-04-10 19:08:16 +08:00
shenglian zhou ce9585a350 before integration test success 2022-04-10 17:28:28 +08:00
shenglian zhou 44bc9731d0 sync home / office 2022-04-08 11:50:16 +08:00
shenglian zhou 517e587c35 udfd exit and restart processing 2022-04-07 17:32:58 +08:00
wangmm0220 225cf61845 merge from 3.0 2022-04-07 11:31:50 +08:00
Haojun Liao 94b7081e97 [td-14493] fix bug found by regression test. 2022-04-07 10:24:22 +08:00
Haojun Liao 50f0ab05ff [td-14493] support distinct. 2022-04-06 23:00:32 +08:00
wangmm0220 c4f67c25fb fix no return error 2022-04-06 18:47:56 +08:00
Haojun Liao 6863999ec5 [td-14493] support having in group by 2022-04-06 17:59:08 +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 a4c7e78d5f [td-14393] refactor. 2022-04-06 11:01:09 +08:00
Haojun Liao 78b1bf27b6 [td-14393] refactor. 2022-04-06 10:09:14 +08:00
Haojun Liao 6eb3f15cd0 [td-14393] merge 3.0. 2022-04-04 15:13:47 +08:00
Haojun Liao f7ba0c31d8 [td-14393] refactor. 2022-04-04 14:54:39 +08:00
Haojun Liao e7e5fd4345 [td-14393] support percentile function. 2022-04-02 23:42:00 +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 e41043074b integrate constant calculate 2022-04-02 08:20:26 -04:00
Haojun Liao b0310c90eb [td-14393] support percentile. 2022-04-02 20:13:48 +08:00
Ganlin Zhao f74771cd3f
Merge pull request #11221 from taosdata/feature/3.0_glzhao
[TD-14241]: add string functions
2022-04-02 18:50:11 +08:00
Ganlin Zhao 8bcdf8e200 [TD-14241]<feature>: refactor string functions 2022-04-02 18:34:17 +08:00
Haojun Liao 6f77eeccce [td-13039] support stddev. 2022-04-02 16:59:02 +08:00