Commit Graph

28 Commits

Author SHA1 Message Date
lyh250-666 01bae36e82 enh:modify error code passing in libs/ 2024-09-10 18:42:00 +08:00
kailixu 8b2af4f09d fix: memory leak of geos 2024-08-28 19:12:23 +08:00
kailixu c301fe3940 fix: memory leak of geos 2024-08-27 18:16:32 +08:00
kailixu 6cd7fd0288 fix: memory leak of geos 2024-08-24 10:19:16 +08:00
kailixu 3dcd7ac371 fix: memory leak of geos 2024-08-24 09:56:27 +08:00
Shungang Li bb25893d0e enh: rm ASSERT in mndArbGroup.c/geosWrapper.c/geomFuncTestUtil.cpp 2024-08-23 14:55:58 +08:00
kailixu b072a83bbd fix: memory leak of geos 2024-08-21 15:45:57 +08:00
Hongze Cheng 87e56d3d67
Revert "fix: memory leak of geos" 2024-08-21 10:23:22 +08:00
kailixu fe3415c602 Merge branch '3.0' into fix/TD-31163-3.0 2024-08-20 13:55:35 +08:00
kailixu 6055b9172e fix: memory leak of geos 2024-08-20 09:03:57 +08:00
sima 50672cd1a8 enh:[TD-31529] Remove ASSERT in libs/scalar. 2024-08-20 07:58:55 +08:00
kailixu 0531a4f4bd fix: memory leak of geos 2024-08-19 18:36:39 +08:00
Shungang Li 6316c22f6f fix: type check for executeGeomFromTextFunc 2024-08-07 09:26:15 +08:00
Shungang Li 4068e3d73b fix: memleak in initWktRegex 2024-08-06 17:59:17 +08:00
Shungang Li 1241cffcf2 enh: add more code check 2024-07-26 23:08:13 +08:00
Shungang Li 12f9116eeb fix: (errcode) geom return value 2024-07-24 19:32:49 +08:00
Shungang Li d908c1d710 feat: (errcode) more for ttime.c/geomFunc.c/geosWrapper.c 2024-07-24 17:29:06 +08:00
Shungang Li bebe2c5266 feat: (errcode) geosWrapper.c 2024-07-23 09:13:45 +08:00
Shungang Li ae86af72bf feat: (errcode) geomFunc.c 2024-07-23 09:13:45 +08:00
sima a1fb874c22 enh:[TD-30998] Handling return value in sclvector.c 2024-07-19 11:28:21 +08:00
Shungang Li 40e0c6902e fix: geo regex multipoint with paren 2024-04-30 09:53:20 +08:00
Shungang Li a7a736b6d6 feat: add pcre2 lib to precheck geometry wkt 2024-04-25 11:28:07 +08:00
kailixu 569d8e6d33 chore: test case for insert syntax and fix of show tags for varbinary/geometry 2024-03-15 02:18:19 +08:00
Shungang Li d3f3ebfe0d fix:memory access out of bounds in doGeomFromTextFunc 2023-12-07 12:01:59 +08:00
Haojun Liao 200575647c
Merge branch '3.0' into refact/fillhistory 2023-07-03 15:16:18 +08:00
Dingle Zhang 0806d37292
setTrim as true for GEOSWKTWriter since geos3.12 changed it as false by default (#21929) 2023-07-03 14:26:59 +08:00
Haojun Liao 55724157c4 refactor: remove one function. 2023-06-15 10:40:25 +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