Commit Graph

183 Commits

Author SHA1 Message Date
shenglian zhou 7db1c08d9d fix: merge during pull 2023-03-22 15:28:37 +08:00
shenglian zhou 0c0edd6a39 fix: udf agg can not return null values 2023-03-22 15:27:11 +08:00
slzhou 26b3773740 fix: core dump when copy resut buf 2023-03-10 18:58:25 +08:00
slzhou f611a6d467 fix: udf can return varchar 2023-03-10 12:36:58 +08:00
slzhou a39ada58a5 fix: handle function of udf not implemented 2023-03-09 12:13:59 +08:00
slzhou 6c4400c3ba fix: the buf returend by the udf has a smaller size than the function bufsize 2023-03-06 09:20:55 +08:00
Haojun Liao 8d187efc18 refactor:do some internal refactor. 2023-02-20 10:04:08 +08:00
Haojun Liao 07cf336fa0 refactor: add an array list api. 2023-01-17 09:43:33 +08:00
dapan1121 e6c5fd874a
Merge pull request #19175 from taosdata/szhou/fixbugs2
enhance: remove assert
2022-12-30 09:53:59 +08:00
shenglian zhou 5c36d90bc2 fix: free the column info array 2022-12-28 16:18:24 +08:00
shenglian zhou 2680ebff38 fix: set row for data block 2022-12-28 14:31:12 +08:00
shenglian zhou ad1ba74646 fix: add block data clean up for the udf input data block 2022-12-28 13:52:40 +08:00
shenglian zhou a29dea91a5 fix: covert scalar param to data block 2022-12-28 13:32:42 +08:00
slzhou ceea74ee7a enhance: remove assert 2022-12-27 09:58:22 +08:00
slzhou 3108e658e6 fix: expand scalar param column data to fill the udf datablock 2022-12-13 14:51:11 +08:00
shenglian zhou bd99fc5ceb fix: expand scalar input number of rows with the max num of rows 2022-12-13 11:00:13 +08:00
shenglian zhou 9789adc439 fix: fix windows compilation error 2022-12-08 07:36:10 +08:00
shenglian zhou cf3ec5ad40 fix: add default command line to start udfd when taosd is started directly from command line 2022-12-06 11:42:53 +08:00
Haojun Liao 6e81e8cc73 refactor: do some internal refactor. 2022-11-28 12:32:40 +08:00
Haojun Liao 464f108e48 fix(query): fix syntax errors. 2022-11-09 17:14:01 +08:00
dapan1121 4039e99d96
Merge pull request #17816 from taosdata/fix/TD-19686
fix: return err code when query fail
2022-11-03 10:45:54 +08:00
yihaoDeng f8695563f0 fix TD-19686 2022-11-01 19:27:35 +08:00
slzhou 1c90e272c3 fix: uv_get_osenv set length only when no buf 2022-11-01 15:00:13 +08:00
slzhou ad8bc4c687 fix: fix address sanitizer error 2022-11-01 14:55:04 +08:00
slzhou 4356fbc3c5 fix: error of setting ld_library_path 2022-11-01 08:58:52 +08:00
slzhou aa2b54c57c enhance: add configuration for udfd LD_LIBRARY_PATH to taos.cfg 2022-10-31 16:45:39 +08:00
wade zhang 88c52d567b
Merge pull request #17548 from taosdata/szhou/fixbugs
fix: get next row from rb tree from last files when backward scaning
2022-10-21 15:04:42 +08:00
shenglian zhou e8123178e3 fix: fix coverity scan issue 2022-10-21 10:20:21 +08:00
Shengliang Guan 67a3c69b5e
Merge pull request #17524 from taosdata/szhou/fixbugs
fix: add udf call and uv synchronization with uv_mutex
2022-10-21 09:07:21 +08:00
slzhou ace84638b8 fix: add udf call and uv synchronization with uv_mutex 2022-10-20 15:37:12 +08:00
Shengliang Guan 5a1f2a9c97
Merge pull request #17504 from taosdata/szhou/fixbugs
fix: fix scan coverity issue
2022-10-20 11:06:00 +08:00
slzhou 0ed1d883c3 fix: fix coverity scan issue 2022-10-20 09:53:08 +08:00
Benguang Zhao 3b0968d7f9 enh: enable the -Wformat=2 compiler option 2022-10-19 09:24:15 +08:00
Hongze Cheng c4b3da5032 more code format 2022-10-13 14:15:42 +08:00
shenglian zhou 4c00225e9f fix: fix coverity scan issue in tudf.c and udfd.c 2022-09-29 11:26:58 +08:00
Minglei Jin 5f4d6e1c99 fix: remove double free msg's pCont 2022-09-20 11:31:25 +08:00
slzhou 84f79e8df2 fix: save selectivity value for first/last even column consists of all null values 2022-09-06 15:48:08 +08:00
slzhou 63ba9420f3 fix: change whether uv pipe exists 2022-09-06 13:47:16 +08:00
slzhou 863d2aa1f4 fix: invalid read after teardown udfs and close uv pipe later 2022-09-06 11:32:38 +08:00
Shengliang Guan 4401080328 enh: make cmake .. -DCMAKE_BUILD_TYPE=Release work 2022-08-31 18:06:17 +08:00
shenglian zhou f71cb30dd0 fix: clean up udfs is not executed when no udfs 2022-08-03 11:20:48 +08:00
shenglian zhou 4caa6df1a7 fix: add more logs 2022-07-25 19:01:40 +08:00
shenglian zhou 164251c9b8 fix: uv_write callback is called even after the uvTask associated is deleted 2022-07-22 16:46:53 +08:00
dapan1121 9ec14ece62 fix: fix taosd mem leak 2022-07-16 18:58:29 +08:00
Shengliang Guan dca93b18cc refactor: adjust logs 2022-07-08 16:57:54 +08:00
afwerar 98641a8ff5 test: fix Mac test error 2022-07-06 20:47:38 +08:00
slzhou 7088166e98 fix: fix memory leak when uv_loop_close 2022-07-05 14:02:33 +08:00
shenglian zhou a31569f116 fix: set correct datablock rows and columns 2022-06-23 13:38:20 +08:00
Haojun Liao d3d258caa9 fix(query): prepare buffer before copying data. 2022-06-22 23:05:34 +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 9bde2bffec test: fix sim test error 2022-06-21 21:06:32 +08:00
afwerar 9dff7b93c6 test: fix sim test error 2022-06-21 20:04:55 +08:00
shenglian zhou a215003146 feature: eliminate projection optimization 2022-06-18 15:20:30 +08:00
Shengliang Guan 27c1687a05 refactor: adjust some logs 2022-06-02 14:30:26 +08:00
afwerar 93a0c69edc fix(os): win ctest error 2022-05-23 13:42:56 +08:00
shenglian zhou 712217ab02 enhance: udf code refactoring 2022-05-22 16:08:39 +08:00
shenglian zhou 548838d9c3 enhance: udf code refactoring 2022-05-22 16:03:46 +08:00
slzhou 36dcc70f0d fix: improve udf function misuse stability 2022-05-18 18:21:32 +08:00
slzhou 00c11b01fe fix: udfc checks output type and output bytes when executing scalar function 2022-05-18 11:43:03 +08:00
slzhou d5c30f5ea5 fix: release udf func handle when udf agg failure 2022-05-18 10:29:32 +08:00
slzhou b4e23c34a4 feat: udfc check udf function interbuf size and result size 2022-05-17 22:10:51 +08:00
slzhou ee2f3e7e05 fix: clear invalid udf func handle 2022-05-17 20:01:01 +08:00
slzhou 7967f2d7c0 fix: sanitizing tudf memory 2022-05-17 15:19:32 +08:00
slzhou d668ee7b91 fix: aggregate memory leaking 2022-05-17 12:03:37 +08:00
slzhou c94c43951e fix: sanitize udf memory usage 2022-05-17 11:13:11 +08:00
slzhou 9cb2473580 feat: enhance udf func stub with last ref time 2022-05-16 11:15:57 +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 2258916b1d test: recover tmq/basic5.py 2022-05-13 22:02:55 +08:00
afwerar 0815843e94 fix(os): make taosd.exe taos.exe run on windows. 2022-05-13 21:42:16 +08:00
Shengliang Guan 992a64e7c8 Merge remote-tracking branch 'origin/3.0' into feature/dnode 2022-05-13 11:09:02 +08:00
Shengliang Guan 47970ff8a4 refactor: node mgmt 2022-05-12 17:30:57 +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
slzhou@taodata.com d7bd682237 column has member hasNull 2022-05-12 14:42:57 +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
slzhou 623a71d34c feature(udf):move start/stop udfd out of dnode management preparation 2022-05-09 21:39:41 +08:00
shenglian zhou 8f3619ee89 feature(udf): enhance error process 2022-05-09 11:36:46 +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
slzhou f8dd3a1341 feature(udf):refactor code and fix bugs 2022-05-07 19:35:44 +08:00
slzhou c9ee1b0dee fix: core dump when pass mulitiple columns from taosd to udfd 2022-05-06 17:41:49 +08:00
shenglian zhou 8b9e94a038 scalar udf memory by itself 2022-05-05 19:03:05 +08:00
slzhou 193a84717d udaf pass the first time 2022-04-29 18:20:50 +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
slzhou 65598879ca pass compilation after merging 3.0 2022-04-26 16:36:34 +08:00