Commit Graph

79 Commits

Author SHA1 Message Date
xsren bec6dfe16b return value 2024-08-07 16:51:39 +08:00
xsren 07cbdee93c fix: mutex and return value 2024-08-07 10:43:04 +08:00
xsren 152758b72d use taosStrdup 2024-08-06 16:28:18 +08:00
xsren 8989a39865 fix: free cache 2024-08-06 13:44:42 +08:00
xsren 3f25f12187 fix: cache free 2024-08-06 13:35:39 +08:00
xsren 53d115f74a fix: skip dub key error 2024-08-05 19:30:22 +08:00
xsren a61149047f use direct pointer 2024-08-05 14:42:30 +08:00
xsren 8fcf57c077 l2 cache 2024-08-05 12:28:49 +08:00
sima bb142d8c9c enh:[TD-30996] Handling return value 2024-07-29 10:11:04 +08:00
sima 90be5914f7 enh:[TD-31088] Handling return value of tcompare.c 2024-07-25 10:22:53 +08:00
xsren edf453b92a fix: client init regex cache 2024-07-22 15:18:32 +08:00
factosea ae67829b67 fix: hash remove 2024-07-15 16:32:32 +08:00
factosea a5073355bb fix: regex hash 2024-07-15 14:56:23 +08:00
factosea e88277592a log level 2024-07-13 18:13:21 +08:00
factosea 22f69837b3 clear timer 2024-07-13 15:22:16 +08:00
factosea 3e85d0c546 fix: timer 2024-07-13 11:39:25 +08:00
factosea 57f826608a checkout regex pattern at client 2024-07-12 11:48:48 +08:00
factosea cfda747613 fix: match cache release 2024-07-11 21:00:08 +08:00
factosea c135ee8358 fix: set terrno 2024-07-11 11:37:16 +08:00
factosea 41b8693430 use regex cache 2024-07-10 19:46:09 +08:00
dapan1121 417f7f3972
Update tcompare.c 2024-04-19 09:35:53 +08:00
factosea 2f9313fbad fix: compile error 2024-04-18 08:45:51 +08:00
factosea 9c5f7d6656 thread mem leak 2024-04-17 20:06:29 +08:00
factosea bac72b2dd2 fix: mem free 2024-04-17 18:12:43 +08:00
factosea 8411f25a2b fix: TD-26789 nchar match slow 2024-04-17 18:04:33 +08:00
factosea c5932c9d1c fix: wildcard character in both target and pattern 2024-01-08 01:13:53 +08:00
factosea 1aae0e52e3 fix: like wildcard match 2023-12-26 14:48:05 +08:00
factosea e2d2ffc00e fix: % wildcard 2023-12-13 16:07:10 +08:00
wangmm0220 26e025d78d feat:[TD-18789]support varbinary type 2023-08-25 15:43:45 +08:00
wangmm0220 f266d51764 feat:support varbinary type 2023-08-16 19:05:07 +08:00
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +08:00
Shungang Li 308ba7a02e fix: type geometry predicates support
support "=, <>, is null, is not null, in, not in"
2023-06-29 09:44:51 +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
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
wangjiaming0909 e22c62ffba fix: data compare of signed and unsigned integers 2023-05-08 18:13:37 +08:00
kailixu 37bc1bca36 enh: column/row max length support up to 64K 2023-04-03 17:00:52 +08:00
Xiaoyu Wang d6dd087f84 merge main 2023-02-25 10:29:20 +08:00
cyang ad56390a08 fix:compare func for topic & doublue free in taosArrayRemoveDuplicateP for topic 2023-02-21 00:54:34 +08:00
Shengliang Guan 3016f35e9f Merge branch '3.0' into merge/mainto3.0_0105 2023-01-05 16:08:23 +08:00
Xiaoyu Wang fdde287ca9 merge main 2023-01-04 11:43:20 +08:00
Alex Duan 55067ad15c fix: build error covert pointer type 2023-01-03 17:50:33 +08:00
Alex Duan bb6c875765 fix: conform NCHAR sort order with VARCHAR 2023-01-03 17:39:00 +08:00
Alex Duan 02dec5a10a enh: assert remove task 2022-12-30 15:51:10 +08:00
Haojun Liao 7eeea8a29c fix(query): fix the invalid access, and do some internal refactor. 2022-12-29 17:56:20 +08:00
Haojun Liao f970dd24fc fix(query): fix the invalid access. 2022-12-29 16:34:14 +08:00
Haojun Liao 0e471afc03 fix(query): fix the invalid access. 2022-12-29 14:48:57 +08:00
Haojun Liao 011c83956b refactor: do some internal refactor. 2022-12-28 19:12:36 +08:00
Haojun Liao 1e69538c37 fix(query): opt filter perf. 2022-12-27 16:55:38 +08:00
Alex Duan 232c4f4a48 fix(util): tcompare.c modify over 2022-12-23 18:24:24 +08:00
dapan1121 e455269220 fix: memory leak and other issues 2022-12-03 18:46:59 +08:00