Commit Graph

691 Commits

Author SHA1 Message Date
Ganlin Zhao 67e93ef90c Revert "feat(query): add HYPERLOGLOG function"
This reverts commit 267ed293d7.
2022-05-17 10:33:58 +08:00
Ganlin Zhao 267ed293d7 feat(query): add HYPERLOGLOG function 2022-05-17 10:33:19 +08:00
slzhou 47f0c6db6a enhance: refine udfd code 2022-05-17 10:08:15 +08:00
slzhou 5a15151b87 feat: refine udfd 2022-05-17 10:00:13 +08:00
Ganlin Zhao 9dcf9248d7 feat(query): add HYPERLOGLOG function 2022-05-16 22:43:06 +08:00
Ganlin Zhao a3f5e4723a
Merge pull request #12552 from taosdata/feature/3.0_glzhao
feat(query): add tail function
2022-05-16 21:50:31 +08:00
Ganlin Zhao ede4a57c99 enh(query): tail function handle offset param 2022-05-16 19:36:04 +08:00
slzhou c245309e6e feat: enhance udfd epset processing with connect msg and callback epset parameter 2022-05-16 19:03:36 +08:00
Ganlin Zhao a281da1379 fix(query): fix tail function points larger than total rows issue 2022-05-16 17:02:01 +08:00
Ganlin Zhao 21b5f72340 fix(query): fix tail function NULL value handing. 2022-05-16 16:35:59 +08:00
Ganlin Zhao 4be158b391 feat(query): add tail function 2022-05-16 14:29:12 +08:00
slzhou 8284d8b8e0 fix: accquire rpc client in the same way as dmInitClient 2022-05-16 13:27:04 +08:00
slzhou 9cb2473580 feat: enhance udf func stub with last ref time 2022-05-16 11:15:57 +08:00
Ganlin Zhao 3ef067ff03 feat(query): add tail function 2022-05-16 11:03:15 +08:00
slzhou 4ae7a16749 fix: teardown udf optimization 2022-05-16 09:24:35 +08:00
slzhou 8ce04a94f9 fix: change function name for tearing down udf handles 2022-05-16 09:06:08 +08:00
slzhou 5b35fcacd6 fix: teardown udf functions handles 2022-05-16 07:47:56 +08:00
slzhou 89ba943981 fix: change udf comment 2022-05-15 14:15:46 +08:00
slzhou 692ae29c6c fix: clean the udf handles cache when pipe error 2022-05-14 23:39:10 +08:00
slzhou 911cd1fe66 fix: reuse existing udf handles and teardown the handle later 2022-05-14 22:51:13 +08:00
slzhou cef0f74cb3 fix: udf aggregate function handle does not exist 2022-05-14 18:28:51 +08:00
slzhou 56cc2c06f9 fix: udf aggregate function handle does not exist 2022-05-14 18:28:24 +08:00
slzhou a58a0e79c6 fix: uv task error when the pipe is NULL 2022-05-14 18:09:44 +08:00
slzhou 7161919086 fix: finish uv task when event loop start uv task failed 2022-05-14 17:20:22 +08:00
slzhou 2a42fc66bc fix: udf task to queue whenever uv_write result 2022-05-14 16:51:16 +08:00
slzhou 8d1ddbd877 fix: remove from task queue before signalling caller 2022-05-14 15:42:21 +08:00
slzhou b53e7192fc fix: core caused by invalid total rows of data block when executing sql like select udf2(f2) from udf.t2 group by 1-udf1(f1) 2022-05-14 09:31:30 +08:00
Shengliang Guan 253651a521
Merge pull request #12449 from taosdata/feature/3.0_glzhao
feat(query): add sample function using reservoir sampling method
2022-05-13 23:27:07 +08:00
Ganlin Zhao c1666e7e02 feat(query): add sample function 2022-05-13 22:08:37 +08:00
Ganlin Zhao 18ac565a93 feat(query): add sample function 2022-05-13 22:06:22 +08:00
Shengliang Guan 2258916b1d test: recover tmq/basic5.py 2022-05-13 22:02:55 +08:00
shenglian-zhou 095217a204
Merge pull request #12445 from taosdata/feature/udf
feat: fix erros of square int overflow and block capacity set before filling a new column
2022-05-13 21:59:02 +08:00
afwerar 0815843e94 fix(os): make taosd.exe taos.exe run on windows. 2022-05-13 21:42:16 +08:00
Ganlin Zhao 315a875208 feat(query): add sample function 2022-05-13 21:36:33 +08:00
Ganlin Zhao d24254fb84 feat(query): add sample function 2022-05-13 21:13:35 +08:00
slzhou a6900a7e96 fix : udf2 overflow for large int multiply large int 2022-05-13 21:02:32 +08:00
Shengliang Guan d4e0a27ef3 Merge remote-tracking branch 'origin/3.0' into feature/dnode 2022-05-13 17:46:51 +08:00
Haojun Liao 86031c1985 fix(query): add the repeat scan flag check during aggregate executor. 2022-05-13 12:17:09 +08:00
Shengliang Guan 992a64e7c8 Merge remote-tracking branch 'origin/3.0' into feature/dnode 2022-05-13 11:09:02 +08:00
shenglian-zhou c5faaca906
Merge pull request #12407 from taosdata/feature/udf
fix: udf2 support int and double data type
2022-05-13 09:49:13 +08:00
Haojun Liao e468363ce1
Merge pull request #12409 from taosdata/feature/3.0_liaohj
fix(query): close read fd when finishing scanning data files.
2022-05-13 01:25:38 +08:00
Haojun Liao aae019d18a fix(query): close read fd when finishing scanning data files. 2022-05-13 00:32:02 +08:00
Haojun Liao 3678aa9094
Merge pull request #12391 from taosdata/feature/3.0_liaohj
fix(query): fix special pseudo column caused taosd crash.
2022-05-12 23:49:21 +08:00
slzhou 73d55e7c6b fix: udf2 support int and double data type 2022-05-12 22:58:49 +08:00
Ganlin Zhao 8b9dd500bd
Merge pull request #12401 from taosdata/feature/3.0_glzhao
feat(query): add mavg function
2022-05-12 22:53:36 +08:00
Ganlin Zhao 1e503061ed feat(query): add mavg function 2022-05-12 21:25:53 +08:00
Ganlin Zhao 8d21c662aa feat(query): add mavg function 2022-05-12 21:16:34 +08:00
Ganlin Zhao 818e3636d6 feat(query): add mavg function 2022-05-12 20:40:17 +08:00
Haojun Liao 69e9f6972c other: add some missing modification files to git. 2022-05-12 17:47:01 +08:00
Haojun Liao 4eaf1f5bb6 refactor: do some internal refactor. 2022-05-12 17:34:07 +08:00
Shengliang Guan 47970ff8a4 refactor: node mgmt 2022-05-12 17:30:57 +08:00
Shengliang Guan dd87e8f7b9 refactor: node mgmt 2022-05-12 17:12:40 +08:00
slzhou@taodata.com 278f5262ce Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-12 16:50:26 +08:00
shenglian-zhou 3516696a66
Merge pull request #12382 from taosdata/feature/udf
feature(udf): follow tsdb_code error convention
2022-05-12 16:50:03 +08:00
slzhou@taodata.com 8927155013 feat:add udf dedicated errors 2022-05-12 16:49:31 +08:00
slzhou@taodata.com c95d3cdb36 feature(udf):error follows tsdb_code standard 2022-05-12 15:43:32 +08:00
shenglian-zhou 7357c80720
Merge pull request #12377 from taosdata/feature/udf
feature(udf): column has member hasNull
2022-05-12 15:39:21 +08:00
Ganlin Zhao aba7e4a6f6
Merge pull request #12376 from taosdata/feature/3.0_glzhao
feat(query): add csum function
2022-05-12 15:18:49 +08:00
slzhou@taodata.com d7bd682237 column has member hasNull 2022-05-12 14:42:57 +08:00
Ganlin Zhao 71e43677f7 feat(query): add csum function 2022-05-12 14:38:56 +08:00
Xiaoyu Wang 385068caf9
Merge pull request #12350 from taosdata/feature/3.0_wxy
fix: some problems of parser
2022-05-11 20:33:42 +08:00
Xiaoyu Wang 510283290d fix: some problems of parser 2022-05-11 19:49:04 +08:00
Xiaoyu Wang 41e36dddb7 fix: some problems of parser 2022-05-11 19:03:59 +08:00
Ganlin Zhao 93b0cd8047
Merge pull request #12343 from taosdata/feature/3.0_glzhao
feat(query): add state_duration function
2022-05-11 17:02:24 +08:00
Ganlin Zhao 977c3fe400 feat(query): add state_duration function 2022-05-11 15:42:31 +08:00
Ganlin Zhao 6a94ad7346
Merge pull request #12321 from taosdata/feature/3.0_glzhao
feat(query): add state_count function
2022-05-11 09:50:56 +08:00
Haojun Liao a4015fdb2c
Merge pull request #12315 from taosdata/feature/3.0_liaohj
refactor: do some internal refactor.
2022-05-10 22:07:02 +08:00
shenglian-zhou f718be6ec1
Merge pull request #12320 from taosdata/feature/udf
feature(udf): disable udfd starting
2022-05-10 22:04:20 +08:00
Xiaoyu Wang 8975c6e042 Merge remote-tracking branch 'origin/3.0' into feature/3.0_wxy 2022-05-10 21:00:18 +08:00
Xiaoyu Wang 2745113a77 fix: some problems of parser 2022-05-10 20:59:10 +08:00
Ganlin Zhao 46c9e0f1c2 refactor code format 2022-05-10 20:51:31 +08:00
Ganlin Zhao 57cd462000 Merge branch '3.0' into feature/3.0_glzhao 2022-05-10 20:44:57 +08:00
Ganlin Zhao 3c7b971841 feat(query): add state_count function 2022-05-10 20:35:54 +08:00
Ganlin Zhao 85adb8611c feat(query): add state_count function 2022-05-10 20:32:03 +08:00
slzhou fe99a19687 feature(udf):start udfd can be disabled 2022-05-10 20:24:01 +08:00
slzhou adceacd59b feature(udf):start udfd can be disabled 2022-05-10 20:07:46 +08:00
Haojun Liao 8c47b350dc fix(query): Pseudo time window result expands to multiple rows in case of multiple rows aggregates function existing. 2022-05-10 18:21:54 +08:00
shenglian zhou 8dda49ac17 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-10 13:01:06 +08:00
shenglian zhou 2ba5fdc36f fix: block extraction null set error 2022-05-10 11:22:31 +08:00
Ganlin Zhao 65fe36ffb4
Merge pull request #12295 from taosdata/feature/3.0_glzhao
fix(query): fix histogram normalized result incorrect for super table
2022-05-10 11:11:25 +08:00
Ganlin Zhao 7213548847 fix(query): fix histogram normalized result incorrect for super table
TD-15407
2022-05-10 10:15:33 +08:00
Ganlin Zhao 15055fe9e3
Merge pull request #12281 from taosdata/feature/3.0_glzhao
feat(query): add leastsquares function
2022-05-10 10:13:51 +08:00
Shengliang Guan fe4c1eed05
Merge pull request #12283 from taosdata/feature/3.0_wxy
fix: problem of parser and planner
2022-05-10 09:35:32 +08:00
Haojun Liao f872ef975f
Merge pull request #12274 from taosdata/feature/3.0_liaohj
enh(query):support selectivity function and normal column data query.
2022-05-09 23:36:51 +08:00
slzhou 623a71d34c feature(udf):move start/stop udfd out of dnode management preparation 2022-05-09 21:39:41 +08:00
Xiaoyu Wang 4c914c2960 fix: problem of parser and planner 2022-05-09 20:20:05 +08:00
Ganlin Zhao cfa77a2d39 feat(query): add leastsquares function 2022-05-09 20:04:03 +08:00
Ganlin Zhao 79570c93a3 feat(query): add leastsquares function 2022-05-09 19:37:16 +08:00
Haojun Liao 55d11618d0 fix(query): fix float value min/max query error. 2022-05-09 19:13:50 +08:00
Haojun Liao ea18b8a7dc feature(query): bottom function is available. 2022-05-09 17:48:23 +08:00
Haojun Liao a030a9f32f enh(query):support selectivity function and normal column data query. 2022-05-09 16:06:15 +08:00
shenglian-zhou e93376de9a
Merge pull request #12252 from taosdata/feature/udf
feature(udf): enhance error process
2022-05-09 12:14:17 +08:00
shenglian zhou 8f3619ee89 feature(udf): enhance error process 2022-05-09 11:36:46 +08:00
shenglian-zhou ea282e0d9d
Merge pull request #12246 from taosdata/feature/udf
feature(udf): pipe is placed under datadir and remove it after udfd exist and is hidden
2022-05-09 10:03:22 +08:00
shenglian zhou 736fddc4cd feature(udf): pipe is placed under datadir and remove it after udfd exist and is hidden 2022-05-09 09:36:50 +08:00
afwerar 02e6b38270 fix(os): make taosd run on win. 2022-05-09 03:22:05 +08:00
Haojun Liao f6be0f0dfe other: merge with 3.0. 2022-05-08 16:06:47 +08:00
Haojun Liao 9025a5d735 Merge branch '3.0' into feature/3.0_liaohj 2022-05-08 00:14:02 +08:00
Haojun Liao 5c60c6046d refactor: do some internal refactor. 2022-05-07 23:01:56 +08:00
slzhou 4cc16bec00 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-07 20:00:56 +08:00
slzhou f8dd3a1341 feature(udf):refactor code and fix bugs 2022-05-07 19:35:44 +08:00
Haojun Liao 6ce36a083e
Merge pull request #12214 from taosdata/feature/3.0_liaohj
fix(query): remove a false assert.
2022-05-07 19:00:29 +08:00
Haojun Liao 9b3d7aa410 fix(query): remove a false assert. 2022-05-07 18:19:56 +08:00
54liuyao 599ea89a53 stream scan 2022-05-07 18:10:45 +08:00
Ganlin Zhao 48f708dfe6 Merge branch '3.0' into feature/3.0_glzhao 2022-05-07 15:32:27 +08:00
Ganlin Zhao e2413a062c fix: histogram normalized can only be 0/1 2022-05-07 14:29:50 +08:00
Ganlin Zhao dd7cec4132 feat(query): add histogram normalized processing 2022-05-07 14:23:07 +08:00
Ganlin Zhao 2139ccceb0
Merge pull request #12191 from taosdata/feature/3.0_glzhao
feat(query): add histogram param parsing
2022-05-07 14:08:01 +08:00
Ganlin Zhao 660b610f04 fix(query): fix histogram function output 2022-05-07 11:35:03 +08:00
Ganlin Zhao bb3681cd71 feat(query): add histogram param parsing 2022-05-07 10:24:41 +08:00
Ganlin Zhao bc5e63b0a7 feat(query): add histogram param parsing 2022-05-06 21:44:25 +08:00
Ganlin Zhao d36a9286b5
Merge pull request #12172 from taosdata/feature/3.0_glzhao
feat(query): add histogram function
2022-05-06 21:42:56 +08:00
Haojun Liao 1a2d170509
Merge pull request #12166 from taosdata/feature/3.0_liaohj
fix(query): set the correct result field length for first/last query.
2022-05-06 19:47:06 +08:00
Haojun Liao 809a3eda25 fix(query): set the correct result field length for first/last query. 2022-05-06 18:16:16 +08:00
Haojun Liao 29651b7b8b
Merge pull request #12163 from taosdata/feature/3.0_liaohj
fix(query): sort according to the generated column data in order by operator.
2022-05-06 18:10:14 +08:00
slzhou c9ee1b0dee fix: core dump when pass mulitiple columns from taosd to udfd 2022-05-06 17:41:49 +08:00
Haojun Liao 8ffdd1b715 other: merged with 3.0 branch. 2022-05-06 17:26:52 +08:00
Ganlin Zhao ea88da15db feat(query): add histogram function 2022-05-06 15:51:18 +08:00
Haojun Liao e4f0a0fc67 fix(query): enable table name query for super table. 2022-05-05 23:47:44 +08:00
shenglian zhou 8e0eda6c0c Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-05 19:52:07 +08:00
shenglian zhou 8b9e94a038 scalar udf memory by itself 2022-05-05 19:03:05 +08:00
Xiaoyu Wang 1361bf4eed fix: plan problem of tag scanning 2022-05-05 14:49:00 +08:00
Haojun Liao f096f27ce8 refactor: do some internal refactor. 2022-05-01 15:22:28 +08:00
Haojun Liao 4decef962a Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-05-01 14:19:57 +08:00
Xiaoyu Wang 3b4f9b91cf feat: sql commadn 'select max(c1), c2 from t2' 2022-05-01 08:38:17 +08:00
Haojun Liao 3d931faa5b refactor(query): do some internal refactor. 2022-05-01 00:23:22 +08:00
shenglian-zhou 99cf4ec499
Merge pull request #12062 from taosdata/feature/udf
feat(udf): udaf pass the first time
2022-04-29 21:23:57 +08:00
Xiaoyu Wang 022f5bfc14 feat: rewrite timeline function 2022-04-29 20:06:26 +08:00
slzhou 193a84717d udaf pass the first time 2022-04-29 18:20:50 +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
Ganlin Zhao 6a73011231 Merge branch '3.0' into feature/3.0_glzhao 2022-04-28 21:40:27 +08:00
Ganlin Zhao d8f8e075e1 feat(query): add spread function
TD-14297
2022-04-28 21:27:46 +08:00
Liu Jicong 4a40bf25ee fix: interval status do not reset for stream 2022-04-28 20:03:30 +08:00
shenglian zhou 00509d0edf udaf integrate into function framework 2022-04-28 14:43:54 +08:00
shenglian zhou ba5123ad24 agg proc func parameter change 2022-04-28 14:07:24 +08:00
shenglian zhou 0119054b0b aggregate function call from udfd 2022-04-28 11:12:45 +08:00
shenglian zhou 974c679c84 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-04-28 10:30:20 +08:00
shenglian zhou d9490f8a8b finalize result buf location can be specified 2022-04-28 10:30:00 +08:00
afwerar 48e379f320 fix(shell): memory init error. 2022-04-27 09:48:33 +08:00
shenglian zhou 35711ee710 Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-04-27 07:31:36 +08:00
shenglian zhou f183c5606c before modify udfd process request and runudf.c 2022-04-27 07:27:58 +08:00
slzhou e9e6b1fa1f sync home office 2022-04-26 18:28:30 +08:00
Xiaoyu Wang ac754dce90 fix: some problems of tag query and sma 2022-04-26 18:15:06 +08:00
slzhou 22a97ca07e Merge branch '3.0_udfd' of github.com:taosdata/TDengine into feature/udf 2022-04-26 17:31:22 +08:00
slzhou 26eaaf9070 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-26 17:00:15 +08:00
slzhou 41a213a904 scalar api change 2022-04-26 16:57:08 +08:00
slzhou 65598879ca pass compilation after merging 3.0 2022-04-26 16:36:34 +08:00
slzhou 21a28306e0 merge 3.0 2022-04-26 16:09:13 +08:00
Xiaoyu Wang cc231653ad enh: format code 2022-04-26 12:59:53 +08:00
slzhou ac7f492cce udaf has result processing 2022-04-26 09:55:04 +08:00
shenglian zhou 38f43f5a9f home office sync 2022-04-26 07:22:20 +08:00
Xiaoyu Wang ba509423fc fix: some problems of udf and 'create table' 2022-04-25 20:35:05 +08:00
shenglian zhou f8e71908c4 add feature that udaf produces no result 2022-04-25 18:19:57 +08:00
Xiaoyu Wang 14e9fa355c fix: some problems of udf and 'create table' 2022-04-25 17:57:14 +08:00
Ganlin Zhao 30a255cb93
Merge pull request #11841 from taosdata/fix/TD-15116
fix(query): fix scalar function input is constant return var type value contains illegal characters.
2022-04-25 17:55:22 +08:00
Ganlin Zhao 8c36142a9c fix(query): fix scalar function input is constant return var type value contains illegal characters.
TD-15116
2022-04-25 17:16:47 +08:00
shenglian zhou 73a0ad7414 udaf integration first step 2022-04-25 15:44:40 +08:00
afwerar 276eb84746 feature(dnode): mul parameter start. 2022-04-25 14:05:09 +08:00
afwerar f966242047 feature(dnode): mul parameter start. 2022-04-25 13:57:55 +08:00
shenglian-zhou 7468d948f5
Merge pull request #11819 from taosdata/3.0_udfd
udfc open/close in vm init/cleanup
2022-04-25 11:26:25 +08:00
Haojun Liao 199a3610f7 fix: fix some syntax errors. 2022-04-25 09:44:39 +08:00
slzhou e29141a4ad udfc open/close in vm init/cleanup 2022-04-25 09:30:20 +08:00
Haojun Liao 5eed1159b1 other: merge 3.0 2022-04-25 09:16:37 +08:00
shenglian zhou 420ca1ef45 Merge branch '3.0' of github.com:taosdata/TDengine into 3.0_udfd 2022-04-25 05:37:56 +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
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