Commit Graph

1866 Commits

Author SHA1 Message Date
Haojun Liao eb4449999f other: merge 3.0 2023-10-12 10:33:48 +08:00
dapan1121 c8aee79e3f fix: apercentile parameter validation and result error 2023-09-27 16:08:06 +08:00
wangjiaming0909 1e53e6cfeb optimize count()/last() + partition by tbname/tag 2023-09-19 14:56:02 +08:00
Haojun Liao 60f5056ab7 other: merge 3.0 2023-09-12 22:00:40 +08:00
dapan1121 615c619bba
Merge pull request #22782 from taosdata/fix/TS-3897
fix: fix diff not support unsigned type
2023-09-07 16:17:42 +08:00
Ganlin Zhao a762437100 fix issue 2023-09-07 09:54:06 +08:00
Ganlin Zhao 60d159731a Revert "fix: fix diff not support unsigned type"
This reverts commit 7ccf959cdc44be7c5eaa0218f84db7699c126bbb.
2023-09-07 09:53:52 +08:00
dapan1121 ed9085281d
Merge pull request #22623 from taosdata/feat/TD-25964-3.0
feat: get cpu cores from quota
2023-09-06 16:03:33 +08:00
Ganlin Zhao d74834f81e fix: fix diff not support unsigned type 2023-09-06 14:21:30 +08:00
shenglian zhou 6b79947402 fix: fix coverity scan issue 2023-09-06 08:48:46 +08:00
wangmm0220 a0fadb07ea fix:support length function for varbinary 2023-09-04 17:15:03 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
dapan1121 228e6c6acd Merge remote-tracking branch 'origin/main' into 3.0 2023-09-01 10:01:10 +08:00
kailixu f4dd1895b2 Merge branch '3.0' into feat/TD-25964-3.0 2023-08-31 08:56:53 +08:00
dapan1121 2e7897239a fix: trim block and partition by constant function issue 2023-08-30 16:51:44 +08:00
dapan1121 a1c55d0584
Merge pull request #22564 from taosdata/fix/TD-25540-new
fix: fix where ts < now used in nested query report invalid timestamp
2023-08-30 16:48:20 +08:00
kailixu eb7d2d495a chore: supports obtaining physical/virtual CPU cores 2023-08-30 15:21:03 +08:00
Haojun Liao b1aa86a290
Merge pull request #22605 from taosdata/feat/TD-18789
feat:support varbinary type
2023-08-30 11:29:26 +08:00
Ganlin Zhao 4b954c0874 fix potential overflow 2023-08-30 10:25:16 +08:00
Ganlin Zhao d2433a452c remove comments 2023-08-29 18:27:07 +08:00
Ganlin Zhao d0fb485573 fix all possible overflow using md5 2023-08-29 15:51:29 +08:00
wangmm0220 201a8f0918 feat:support varbinary type 2023-08-28 19:06:16 +08:00
dapan1121 e24498b0fd enh: add task notify 2023-08-25 14:59:34 +08:00
Ganlin Zhao 7396a7c09c fix: fix where ts < now used in nested query report invalid timestamp 2023-08-24 17:11:05 +08:00
dapan1121 3045a623e1 Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-08-17 14:16:05 +08:00
dapan1121 143c657571 Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-08-16 14:50:31 +08:00
dapan1121 b113d02476
Merge pull request #22438 from taosdata/feat/TD-23299
feat: add irate distributed execution
2023-08-16 14:44:33 +08:00
wade zhang 1a1a12b7b8
Merge pull request #22327 from taosdata/fix/TD-25010-3
feat(tsdb/cos): s3 migration
2023-08-16 08:02:20 +08:00
Ganlin Zhao 3c6ddad611 fix bugs 2023-08-15 17:58:12 +08:00
Ganlin Zhao adaaa922be fix bugs 2023-08-15 17:47:19 +08:00
Ganlin Zhao 1876a94e26 fix bugs 2023-08-15 16:05:09 +08:00
Ganlin Zhao 01a7dfbc34 feat: add irate distributed execution 2023-08-15 12:59:30 +08:00
dapan1121 6ce28e8886 Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-08-14 10:49:56 +08:00
dapan1121 1f3eacba17
Merge pull request #22365 from taosdata/enh/TD-25366
enh: remove timeline dependence of certain functions
2023-08-10 17:08:05 +08:00
Minglei Jin 33967b243b
Merge branch '3.0' into fix/TD-25010-3 2023-08-10 12:14:01 +08:00
Ganlin Zhao 11823580c7 fix test cases 2023-08-09 17:13:31 +08:00
Ganlin Zhao 70e4b4f44e remove unique need of primary ts 2023-08-09 14:30:34 +08:00
Ganlin Zhao bea4346232 enh: remove timeline dependence of certain functions 2023-08-08 16:05:21 +08:00
Minglei Jin fac7e521e9 s3/evict: fetch atime from stat file 2023-08-07 15:59:37 +08:00
Ganlin Zhao d9ef9c4584 fix: fix _wstart,_wennd not matching with interval for ns/us databases 2023-08-04 10:15:15 +08:00
dapan1121 4e5fbb52ee Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-07-26 13:56:46 +08:00
liuyao 6d40cdb62e adj max combine fucntion 2023-07-26 09:52:07 +08:00
dapan1121 aca9c5fe19 Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-07-14 13:31:07 +08:00
Haojun Liao 3ffdbe923d other: merge 3.0 2023-07-11 09:12:57 +08:00
yihaoDeng 79f01ad655 add version check in rpc 2023-07-05 08:16:25 +00:00
dapan1121 c85bbef2e9 Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-07-05 11:13:57 +08:00
Ganlin Zhao ac8940dcce fix: remove order logic in diff function 2023-07-04 11:31:30 +08:00
Haojun Liao 200575647c
Merge branch '3.0' into refact/fillhistory 2023-07-03 15:16:18 +08:00
dapan1121 61d57aaf49
Merge pull request #21899 from taosdata/fix/td-24964
fix: fix coverity scan issues
2023-06-30 09:25:37 +08:00
dapan1121 7dddfd0a5a Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-06-29 19:29:27 +08:00
shenglian zhou e05b7dcf00 fix: fix coverity scan issues 2023-06-29 15:36:16 +08:00
dapan1121 3519e9170e Merge remote-tracking branch 'origin/main' into 3.0 2023-06-29 11:13:45 +08:00
dapan1121 9f0da17c49 Merge remote-tracking branch 'origin/3.0' into feat/TD-24700 2023-06-28 19:40:55 +08:00
dapan1121 27a201441a
Merge pull request #21821 from taosdata/fix/ts-3572
fix: udfd can not connect to taosd since authentification failure
2023-06-28 16:31:59 +08:00
slzhou fc3fe9dff8 fix: remove connect to mnode 2023-06-28 13:49:13 +08:00
Ganlin Zhao 421e75d03b fix coverity issue 2023-06-28 10:47:30 +08:00
Ganlin Zhao aa33384a41 fix coverity issue 2023-06-28 10:07:52 +08:00
dapan1121 3db873652a
Merge pull request #21868 from taosdata/fix/TS-3581
fix: fix result of first can be 0 occasionally
2023-06-27 16:43:35 +08:00
Ganlin Zhao 56a715b5d5 fix: fix result of first can be 0 occasionally 2023-06-27 14:32:35 +08:00
Haojun Liao 3289ad62be other: merge 3.0 2023-06-27 11:33:40 +08:00
dapan1121 4dae9f4eff merge main to 3.0 2023-06-26 18:43:00 +08:00
dapan1121 ce2635074d enh: add uid/vgid functions 2023-06-26 11:48:47 +08:00
slzhou 6de507d392 fix: modify test case 2023-06-25 11:44:01 +08:00
shenglian zhou fd754eaa08 fix: udfd can not connect to taosd since authentification failure 2023-06-25 11:31:33 +08:00
Haojun Liao 74e0138f72 Merge branch '3.0' into refact/fillhistory 2023-06-15 15:25:00 +08:00
Haojun Liao 1b9eca5ce0 other: merge main. 2023-06-15 13:03:17 +08:00
Haojun Liao 55724157c4 refactor: remove one function. 2023-06-15 10:40:25 +08:00
Ganlin Zhao 728e42f723 fix: add forbid system table functions 2023-06-14 11:10:51 +08:00
dapan1121 170182fecd feat: support fill history with sub request 2023-06-12 16:10:54 +08:00
dapan1121 6c20a331aa
Merge pull request #21547 from taosdata/fix/TD-24507
fix: fix multiple diffs output less lines if null values involved
2023-06-08 10:37:51 +08:00
dapan1121 a0428387a9 enh: corrent column data reassign issue 2023-06-06 16:44:15 +08:00
dapan1121 02b1257b01 enh: reassign data column in blocks 2023-06-06 11:17:02 +08:00
Haojun Liao 5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +08:00
Ganlin Zhao 26cafdea13 fix: fix multiple diffs ouput less lines if null values present 2023-05-31 11:08:41 +08:00
dapan1121 e2d45438cb
Merge pull request #21405 from taosdata/szhou/scl-flt
enhance: scalar filter improvement
2023-05-28 18:49:39 +08:00
Haojun Liao cea8334427
Merge pull request #21449 from taosdata/refact/fillhistory
refactor: remove the module dependency.  TD-24279
2023-05-26 09:01:45 +08:00
slzhou de1848cb08 enhance: use scalar mode to run ci test 2023-05-25 14:51:53 +08:00
Haojun Liao 0966213847 fix(arch): set the correct module api dependency. 2023-05-25 14:21:40 +08:00
Dingle Zhang 984211f3b4
Feature/3.0 geometry (#21037)
* Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far.

* add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling

* change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh

* Add a function MakePoint() and introduce a lib geometry

* implement sql functions GeomFromText() and AsText()

* Use GEOS *_r funcions instead for thread safety

* Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT.
Add geosWrapper to wrap the basic GEOS functions for TDEngine.

* refactor AsText and MakePoint functions to be like GeomFromText

* Show WKT when print geometry data in screen
Dump hex data when dump geometry data in a file

* define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues.

* set number of decimals of WKT to 6

* Implement SQL function Intersects()

* refactor geometry sql functions

* Add geosErrMsgeHandler() to get the GEOS error detail

* use threadlocal to instantiate SGeosContext
call destroyGeosContext() only if the thread exists

* remove SGeosContext *context param for all geometry functions since we use thread local one,
so that all caller do not need to know the context.

* Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance.

* rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn

* Add prefix "ST_" for all geometry functions

* move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util,
so that all unit test tools can compile

* Add unit test for geometry lib, only test MakePoint so far

* refactor and enhance existing cases in geomFuncTest

* implement NULL type and NULL value test for geomFuncTest

* add test on geomFromText()

* add unit test on AsText() in geomFuncTest

* combine some makePointFunction test items

* add intersectsFunctionTwoColumns test
refactor on callGeomFromTextWrapper functions

* enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content

* add more cases into intersectsFunction test

* Add basic test on geometry in system test

* Add ST_GeomFromText and ST_AsText function test in system test on geometry

* add ST_Intersects function test in system test on geometry

* support to check expectedErrno in system test on geometry

* adjust geomTest unit test and geometry system test

* add geometry data type and functions in doc english version

* implement touchesFunction() in geometry lib
refactor geometry relation functions model

* separate gemFuncTest into several src files

* add unit test on touchesFunction

* support sql function ST_Touches()
add system test on ST_Touches

* add docs for ST_Touches()

* Add ST_Contains()

* Add ST_Covers()

* Add ST_Equals()

* add swapAllowed param for geomRelationFunction()
read geom2 earlier intead of at doGeosRelation()

* Add ST_ContainsProperly()

* build on windows

* Merge from 3.0 to 3.0_geometry

* change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility

* change '\\NULL' to 'NULL' back in shellDumpFieldToFile()

* add /usr/local/include into include directory

* add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 15:36:46 +08:00
Ganlin Zhao 89bea7100f fix: fix count var type error 2023-05-24 00:31:05 -07:00
Haojun Liao e67b532d8a refactor: refactor the module dependency. 2023-05-23 18:29:23 +08:00
dapan1121 70444e2d82
Merge pull request #21329 from taosdata/feat/TD-21187
feat(query): interp support ignore null value opition
2023-05-20 14:14:21 +08:00
Ganlin Zhao a3ca23b688 forbid interp ignoring null value used for multiple cols 2023-05-19 16:43:39 +08:00
yihaoDeng 9380b22394 merge 3.0 2023-05-18 05:46:38 +00:00
Haojun Liao 041ffa91bd other: merge main. 2023-05-17 15:42:15 +08:00
Ganlin Zhao 6879a784ae reserve value node 2023-05-16 15:07:07 +08:00
Ganlin Zhao ace27326b0 enable ignore_null value param in client 2023-05-16 14:13:40 +08:00
liuyao 502efb3d01 op stream selectivity buff 2023-05-15 16:26:24 +08:00
dapan1121 026a4b5540 fix: fix compile issue 2023-05-12 15:07:05 +08:00
yihaoDeng 5708fcb5cb Merge branch 'enh/3.0' into enh/rocksdbSstateMerge 2023-05-10 08:02:16 +00:00
Yihao Deng c6e5879f44
Merge branch 'main' into enh/rocksdbSstate 2023-05-10 10:04:28 +08:00
yihaoDeng 8356533eb1 Merge branch 'enh/standVer' into enh/rocksdbSstateMerge 2023-05-09 12:13:16 +00:00
wangjiaming0909 479bb157e0 fix: select _block_dist() from t; set the unit of Size to KB 2023-05-09 15:19:21 +08:00
kailixu fa822ff286 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-27 19:11:16 +08:00
Benguang Zhao 12f28a4a43 enh: unify error msg for no disk space 2023-04-25 15:39:11 +08:00
kailixu 781834065a Merge branch '3.0' into enh/TD-21161-3.0 2023-04-25 08:22:08 +08:00
shenglian zhou bb3ce6a3d7 enhance: error code refactor 2023-04-23 14:54:12 +08:00
yihaoDeng 917b07348c Merge branch 'fix/rocksdbState' into enh/rocksRevert 2023-04-23 02:37:26 +00:00
kailixu 77a8e3b213 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-21 16:04:09 +08:00
Alex Duan 4c0cdd8192 test: add udf2_dup test case 2023-04-20 14:34:38 +08:00
Alex Duan c34c53539d test: add udf2_dup test case 2023-04-20 14:32:32 +08:00
Alex Duan 977af4289b test: fix udf1_dup error 2023-04-20 14:05:15 +08:00
Alex Duan ba0a6e087f test: add the cast that select field include two udf function 2023-04-20 13:51:39 +08:00
yihaoDeng 5402a6061f Merge branch 'dev' into enh/rocksRevert 2023-04-19 17:37:07 +08:00
dapan1121 95b78f327a
Merge pull request #20959 from taosdata/enh/TS-3149
enh: add param for to_unixtimestamp to return timestamp type
2023-04-19 08:54:25 +08:00
Ganlin Zhao 9581dcae7f enh: add param for to_unixtimestamp to return timestamp type 2023-04-18 14:17:22 +08:00
kailixu 50053fdc01 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-18 11:13:30 +08:00
shenglian zhou a2d75a327c enhance: udf output column reserve capacity 2023-04-18 08:28:12 +08:00
shenglian zhou 2aefe1d24a Merge branch '3.0' of github.com:taosdata/TDengine into szhou/replace-function-2 2023-04-18 08:24:18 +08:00
kailixu fd3b552357 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-17 11:42:46 +08:00
shenglian zhou 1a0c9f31bc enhance: refactor cleanup udf function 2023-04-17 10:34:34 +08:00
Haojun Liao 04e042f21d Merge branch 'feature/3_liaohj' into enh/rocksRevert 2023-04-15 09:35:43 +08:00
Haojun Liao b57c813681 other: merge feature/3_liaohj 2023-04-14 10:36:54 +08:00
slzhou f62fbde22b Merge branch '3.0' of github.com:taosdata/TDengine into szhou/replace-function-2 2023-04-14 10:26:52 +08:00
dapan1121 d4cb608505
Merge pull request #20885 from taosdata/fix/TS-3108
fix: fix timestamp constant comparison precision error
2023-04-14 09:27:03 +08:00
Xiaoyu Wang 31b2db470b
Merge pull request #20923 from taosdata/fix/3.0_merge_main
merge 3.0
2023-04-14 09:11:51 +08:00
slzhou 99587db7a1 fix: udf handle expired after 10s 2023-04-14 07:58:25 +08:00
Xiaoyu Wang db8a6ce60b
Merge pull request #20891 from taosdata/FIX/TD-23613-main
test: add flush database in some testcases
2023-04-13 19:03:34 +08:00
Xiaoyu Wang d3642c84a2 Merge remote-tracking branch 'origin/3.0' into fix/3.0_merge_main 2023-04-13 16:36:30 +08:00
Ganlin Zhao c7dd22ad1c fix spread timestmap column reading sma issue 2023-04-13 14:58:13 +08:00
Ganlin Zhao d1544e8859 fix: fix illegal usage of _isfilled/_irowts 2023-04-13 14:05:04 +08:00
Ganlin Zhao 7414f28d17 fix translatefunc not getting precision issue 2023-04-13 11:22:15 +08:00
Xiaoyu Wang 933660ae8d Merge remote-tracking branch 'origin/main' into fix/3.0_merge_main 2023-04-12 14:13:23 +08:00
kailixu 04fa4d2e87 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-12 13:05:47 +08:00
shenglian zhou fe718f60ee fix: add expired udfc func stub to track the expired 2023-04-12 12:15:09 +08:00
shenglian zhou 33143e90c8 enhance: add udf stub expiration of 10s after creation 2023-04-12 09:17:31 +08:00
yihaoDeng b24b91886a Merge branch 'dev3' into enh/rocksRevert 2023-04-11 10:59:00 +00:00
Xiaoyu Wang 5ce6220106
Merge pull request #20781 from taosdata/szhou/replace-function
feature: udf replace function
2023-04-11 17:25:21 +08:00
Minglei Jin 9961f82479 fix(udf1): use 1 as luck number to make new gcc happy 2023-04-11 16:52:56 +08:00
slzhou 41f7d79f2c fix: fix compilation error 2023-04-11 13:42:17 +08:00
shenglian zhou 74f2ba76a4 fix: check uv_is_closing before uv_close 2023-04-11 13:24:20 +08:00
Minglei Jin 8060e77be3 fix(udf): make strncat working for release building 2023-04-11 10:41:35 +08:00
Ganlin Zhao 3078e2d487 feat(query): INTERP support boolean type 2023-04-10 18:35:35 +08:00
slzhou b725c9e192 enhance: change udf func body dir to tsDataDir/.udf 2023-04-09 20:31:25 +08:00
slzhou dc86bf9671 fix: remove code size checking 2023-04-08 13:26:15 +08:00
slzhou 55ffb0bc6d fix: correct udf body file name and correct createdtime 2023-04-08 11:36:09 +08:00
shenglian zhou 0be6bb735a fix: remove rename file 2023-04-08 10:42:27 +08:00
shenglian zhou 32523d72f9 fix: add created time to file name and keep file reuse 2023-04-08 10:11:57 +08:00
kailixu e976fcb91d Merge branch '3.0' into enh/TD-21161-3.0 2023-04-07 17:51:35 +08:00
slzhou 26f1e91ddb fix: change binarylib/script dir to tsdatadir 2023-04-07 16:12:29 +08:00
slzhou 596764479f fix: no more fetch when it is already fetching 2023-04-07 10:30:36 +08:00
shenglian zhou 455719befa fix: use us time unit for last fetch time 2023-04-06 18:09:29 +08:00
shenglian zhou 0b055470ec fix: free pFuncVersions of SRetrieveFuncRsp 2023-04-06 14:42:16 +08:00
shenglian zhou e71a82347b enhance: refactor c plugin udf init 2023-04-06 14:31:11 +08:00
slzhou 8ab1aa4ac9 fix: change bugs related to expired udf 2023-04-06 13:13:54 +08:00
slzhou adec92b0b2 fix: change a minor bug 2023-04-06 11:37:48 +08:00
shenglian zhou 47719b1028 Merge branch '2.0' of github.com:taosdata/TDengine into szhou/replace-function 2023-04-06 11:19:10 +08:00
shenglian zhou c17d9eca5f fix: add fetchtime and version to udf init 2023-04-06 11:18:30 +08:00
Xiaoyu Wang c134432c45 merge main 2023-04-06 09:31:45 +08:00
Xiaoyu Wang e9d7a099cc merge main 2023-04-04 14:50:58 +08:00