Commit graph

96 commits

Author SHA1 Message Date
xiao-77
8a2ae888cc fix ci errors. 2024-12-16 15:41:19 +08:00
xiao-77
c66a834d1e Replace unsafe memory functions with safe versions in wal&sync. 2024-12-13 15:19:29 +08:00
dmchen
7d8857d257 fix/check-memalloc-result 2024-09-26 06:12:54 +00:00
xiao-77
840e006249 remove void in mnode 2024-09-20 16:37:27 +08:00
Hongze Cheng
ec2f2b68d9
Merge pull request #27702 from taosdata/fix/TD-31891-remove-void-mnode1
fix/TD-31891-remove-void-mnode1
2024-09-13 11:45:22 +08:00
lyh250-666
726b133721 modify error code passing 2024-09-12 07:46:30 +00:00
dmchen
7a26566362 fix/TD-31891-remove-void-mnode1 2024-09-05 11:39:49 +00:00
dmchen
1adb57b994 fix/TD-31622-remove-reference-when-cancel 2024-08-30 03:46:17 +00:00
dmchen
6164e39433 fix/TD-30989 2024-07-29 11:38:04 +00:00
dmchen
929cb703e7 fix/TD-30989 2024-07-25 09:49:58 +00:00
kailixu
66dda35f75 Merge branch '3.0' into enh/TD-30988-3.0 2024-07-23 18:06:44 +08:00
dmchen
268194eb12 fix case 2024-07-23 01:58:17 +00:00
kailixu
280c5d4b3d enh: return error code 2024-07-22 16:33:42 +08:00
dmchen
49dde39423 error str 2024-07-22 05:24:39 +00:00
dmchen
33ee871acf fix/TD-30989 2024-07-20 01:25:18 +00:00
wangmm0220
b3f945c4c5 fix:conflict 2023-08-16 19:35:05 +08:00
kailixu
242bf77f4c chore: code optimization 2023-08-15 16:13:51 +08:00
kailixu
8a84dce641 enh: disable udf/stream/rsma/tsma for windows 2023-08-15 16:04:30 +08:00
kailixu
27db6cfd67 enh: disable udf/stream for mnd on windows 2023-08-15 14:25:31 +08:00
wangmm0220
7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +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
kailixu
04fa4d2e87 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-12 13:05:47 +08:00
shenglian zhou
6b68a373e9 fix: when update func, set createdtime to original time 2023-04-11 11:37:41 +08:00
“happyguoxy”
765c09d59e update function 2023-04-10 16:40:16 +08:00
slzhou
b2de711a84 fix: change orReplace logic in mnode 2023-04-10 11:33:25 +08:00
slzhou
55ffb0bc6d fix: correct udf body file name and correct createdtime 2023-04-08 11:36:09 +08:00
shenglian zhou
32523d72f9 fix: add created time to file name and keep file reuse 2023-04-08 10:11:57 +08:00
shenglian zhou
66c86a60d5 fix: add func_version to systable 2023-04-06 15:58:53 +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
“happyguoxy”
a71caffed6 add version in mnode 2023-04-04 19:53:08 +08:00
kailixu
37bc1bca36 enh: column/row max length support up to 64K 2023-04-03 17:00:52 +08:00
shenglian zhou
b6542fb286 fix: add language and definition body to ins_functions 2023-03-28 08:43:34 +08:00
Haojun Liao
8d187efc18 refactor:do some internal refactor. 2023-02-20 10:04:08 +08:00
Shengliang Guan
e9c213ff0f fix: repeat malloc sdb raw 2023-01-11 16:37:45 +08:00
Shengliang Guan
2d48563959 fix: crash if failed to decode sdb row 2022-12-01 16:04:39 +08:00
Shengliang Guan
e98335bdfa fix: coverity issues 2022-10-08 11:29:46 +08:00
Shengliang Guan
c6317e67f0 fix: coverity issues 2022-09-30 11:26:26 +08:00
Shengliang Guan
555a99bf90 enh: dump sdb info from mnode 2022-09-26 16:18:48 +08:00
Shengliang Guan
3810b5d4fa fix: add more info log for mnode 2022-09-23 15:42:36 +08:00
Shengliang Guan
43ef21f67b enh: add oper name to show transaction 2022-09-22 16:19:33 +08:00
Cary Xu
381d378b58 fix: grant check for create table 2022-07-23 19:38:41 +08:00
Shengliang Guan
09ce47ae9f refactor: rename auth to privilege 2022-06-25 10:27:27 +08:00
Shengliang Guan
cdfb47cb55 feat: check oper privilege 2022-06-25 08:56:47 +08:00
Shengliang Guan
80e0b830fe refactor: remove duplicate conninfo in SRpcMsg 2022-06-17 10:40:42 +08:00
Shengliang Guan
6711d79434 feat: increase enable and sysinfo limits for user privilege 2022-06-15 17:40:02 +08:00
afwerar
490889f8e7 fix(os): win python case error 2022-06-03 16:13:06 +08:00
Shengliang Guan
04ef9e15e6 refactor: make trans support global conflict 2022-05-31 17:37:25 +08:00
Shengliang Guan
682a7cab17 fix: avoid memory leak 2022-05-21 16:35:24 +08:00
Shengliang Guan
96b7f2696a refactor: adjust SRpcMsg 2022-05-16 14:55:31 +08:00
slzhou
71188483ec fix: create function bufSize default value 0 2022-05-06 15:42:25 +08:00