Commit Graph

15 Commits

Author SHA1 Message Date
wangmm0220 f537832664 fix:[TD-32412] unsafe function 2024-10-11 10:53:32 +08:00
sima 77f97d2a6d enh:[TD-30996] Handling return value 2024-07-28 18:29:57 +08:00
sima 47be646de4 enh:[TD-31070] Handling return value of clientImpl.c 2024-07-26 16:10:21 +08:00
sima ca30014396 enh:[TD-31070] Handling return value of clientJniConnector.c 2024-07-26 16:09:04 +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
huolibo fdbb9cce48
fix: illegal accesses (#20960) 2023-04-18 16:08:22 +08:00
huolibo 2690fd4e9a
fix(driver): return error code to java (#20869) 2023-04-12 15:14:07 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
huolibo 93e50588ce
feat(driver): add schemaless raw insert for jdbc (#20552)
* feat(driver): add schemaless raw insert for jdbc

* feat: add jni reqId

* fix: change API

* fix: change method name

* fix: error code to hex format
2023-03-21 13:33:13 +08:00
huolibo 3e9cc93b9f
enh(driver): tmq async commit callback (#20114) 2023-02-25 12:54:24 +08:00
wangmm0220 ce3fbae952 fix:ASSERT in client mode & converity error 2023-01-06 14:37:38 +08:00
sunpeng d39268ee8a
enh: java connector support get table vgid (#18981)
* java connector support get table vgid

* add export to com_taosdata_jdbc_TSDBJNIConnector.h
2022-12-20 11:05:32 +08:00
huolibo 7c56979ac6
fix: add 'JNI_RESULT_SET_NULL' error code (#18697)
* fix: add JNI_RESULT_SET_NULL error code

* doc: add jni error log desc

* fix: add error reason
2022-12-05 16:09:14 +08:00
Shengliang Guan 447cb4db44 fix: coverity issues 2022-10-09 15:59:25 +08:00