Commit Graph

81 Commits

Author SHA1 Message Date
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
Haojun Liao 35fccc49d8 refactor(query): remove redundant attributes in some structs. 2022-04-29 08:48:18 +08:00
Shengliang Guan 8957b5b32d fix: make retrieve func work 2022-04-24 15:02:22 +08:00
slzhou 7791ad5af1 try to modify and failure 2022-04-24 14:21:07 +08:00
dapan1121 36a8382b8e feature/qnode 2022-04-21 15:33:07 +08:00
Xiaoyu Wang 52c62e7cc8 feat: sql command 'create function' 2022-04-20 18:13:33 +08:00
Xiaoyu Wang 6f377189d0 feat: sql command 'create function' 2022-04-20 17:43:02 +08:00
Shengliang Guan 9f5ddb36d0 refactor(cluster): make the comment and code of udf to variable length 2022-04-18 16:51:59 +08:00
Haojun Liao bcbc8618d2 ehn(query): refactor show module in mnode. 2022-04-13 19:27:47 +08:00
Haojun Liao 60c1ce2d08 ehn(query): refactor show module in mnd. 2022-04-12 20:05:13 +08:00
Haojun Liao 208f639806 feature[query]:refactor show query processing in mnode. 2022-04-09 16:19:08 +08:00
afwerar 222db126bc [TD-13758]<fix>: redefine memory api. 2022-03-26 00:29:53 +08:00
Shengliang Guan 332da70335 rename msg 2022-03-15 20:53:29 +08:00
Shengliang Guan ae4835dbc5 shm 2022-03-11 11:53:52 +08:00
Shengliang Guan 11c79d1b88 set trans type 2022-02-18 11:49:15 +08:00
Shengliang Guan 72ff3200bc serailize show msg 2022-02-15 15:24:27 +08:00