Commit Graph

111 Commits

Author SHA1 Message Date
kailixu c4af46ce3b enh: decrease the libtaos.so size from cos 2023-09-12 09:34:51 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
dapan1121 aa6e04a5a5 fix: merge issue 2023-06-26 19:08:52 +08:00
dapan1121 4dae9f4eff merge main to 3.0 2023-06-26 18:43:00 +08:00
yihaoDeng ff3ad6c65f add static lib to 3.0 2023-06-21 14:38:52 +08:00
Shungang Li e81579e36f fix: undo libgeos's setting of global CMAKE_CXX_STANDARD 2023-06-20 17:52:13 +08:00
kailixu de1483d1d8 chore: config optimize 2023-06-15 06:07:34 +08:00
kailixu a6756f4edc enh: cmake optimize 2023-06-14 23:33:51 +08:00
Cary Xu 596beebb21
Update CMakeLists.txt 2023-06-14 22:48:41 +08:00
Cary Xu 5fadafd944
Update CMakeLists.txt 2023-06-14 22:45:13 +08:00
kailixu a72bb9f5fd chore: specify the platform 2023-06-14 20:45:07 +08:00
kailixu 83975a3c47 chore: specify the platform 2023-06-14 20:37:26 +08:00
kailixu 62c1d5cf12 enh: decrease the package size 2023-06-14 17:31:07 +08:00
yihaoDeng 4fa1cc6dd3 change link opt 2023-06-07 05:26:07 +00:00
yihaoDeng c30e3c8632 change compile opt 2023-06-06 02:34:13 +00:00
yihaoDeng 87b2d76731 Merge branch 'enh/TD-24469/m1-build' into enh/addCompileError 2023-05-29 08:23:24 +00:00
yihaoDeng 1782ecd57e Merge branch 'fix/shared_link_rocksdb' into enh/addCompileError 2023-05-29 08:20:11 +00:00
t_max f9d867f50d fix: TDengine build on macOS arm64 2023-05-29 13:20:53 +08:00
yihaoDeng 342ce14c7d Merge branch 'enh/3.0' into fix/shared_link_rocksdb 2023-05-29 02:37:47 +00:00
yihaoDeng 5933f85b56 change parameter 2023-05-25 17:51:33 +08:00
Hongze Cheng 4d526ed0cd change more 2023-05-24 18:59:09 +08:00
Hongze Cheng e4a3d1dfcf fix: link rocksdb shared library 2023-05-24 18:26:02 +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
yihaoDeng 1a8e4d7276 opt compile opt 2023-05-14 04:02:54 +00:00
Haojun Liao 236926b9ee other: merge enh/rocksdbstate 2023-05-13 19:49:28 +08:00
yihaoDeng 5708fcb5cb Merge branch 'enh/3.0' into enh/rocksdbSstateMerge 2023-05-10 08:02:16 +00:00
yihaoDeng e4e177d7fe fix compile opt on windows 2023-05-09 09:04:38 +00:00
yihaoDeng 8b48396560 add compile opt on windows 2023-05-04 09:14:28 +00:00
Minglei Jin bcd051777b rocksdb/cmake: disable iostats_context, perf_context 2023-05-04 16:06:05 +08:00
Minglei Jin 10e3b4ab4a cmake/contrib: remove debug messages 2023-04-26 17:43:28 +08:00
Minglei Jin 892cdfc656 rocks/cmake: fix building on mac 2023-04-26 17:36:12 +08:00
yihaoDeng 10582fb5e0 opt write opt 2023-04-25 09:49:28 +00:00
yihaoDeng 54f3bc2543 change write opt 2023-04-21 10:06:37 +00:00
yihaoDeng eff4257dc6 change write opt 2023-04-21 08:23:58 +00:00
Minglei Jin c9959b5bf6 dst slot for last_row 2023-04-21 14:18:04 +08:00
yihaoDeng 1da8565e29 change write opt 2023-04-21 05:42:35 +00:00
yihaoDeng 32e283482a change write opt 2023-04-21 03:34:56 +00:00
yihaoDeng 972b19d5d8 change write opt 2023-04-21 03:10:11 +00:00
yihaoDeng 710b7d9422 change write opt 2023-04-21 02:20:01 +00:00
yihaoDeng d59d3dfe0a change write opt 2023-04-21 02:17:28 +00:00
yihaoDeng 34f59fe583 change write opt 2023-04-21 02:16:00 +00:00
yihaoDeng 1efe2f23c7 change write opt 2023-04-21 01:46:07 +00:00
yihaoDeng 80a870797a change write opt 2023-04-21 01:34:49 +00:00
Minglei Jin 373a542896 contrib/rocks: build rocds by default 2023-04-20 18:42:02 +08:00
Minglei Jin ec4ea9cf5d enh(cache/rocks): base for rocks put/get 2023-04-14 18:28:15 +08:00
yihaoDeng c3d7f888e9 add backend 2023-03-26 05:46:48 +00:00
yihaoDeng 914d391845 fix tag filter 2023-03-21 12:28:16 +00:00
yihaoDeng 2d37aeabdc add backend 2023-03-20 15:33:18 +00:00
Haojun Liao 317ee1daea other: update the command. 2022-10-28 23:29:38 +08:00
Haojun Liao d87e8f0250 other: update the command. 2022-10-28 23:28:53 +08:00