Commit Graph

37 Commits

Author SHA1 Message Date
Yihao Deng c7aa668435 fix other platform error 2024-04-16 12:18:57 +00:00
yihaoDeng b7067e61c8 fix ci error 2024-03-29 08:40:19 +00:00
yihaoDeng e7d3180d93 refactor code 2024-03-24 10:19:18 +00:00
yihaoDeng 54294f6479 refactor code 2024-03-24 09:24:40 +00:00
yihaoDeng 3ccf9942a9 refactor code 2024-03-24 05:35:07 +00:00
yihaoDeng ba7342e50c add more compress alg 2024-03-20 03:13:29 +00:00
Alex Duan 4a4e778a6a fix: remove depends from util to common 2023-09-19 10:46:52 +08:00
Alex Duan 88c091e575
Update CMakeLists.txt
add common on util cmakefile.txt
2023-09-18 21:09:04 +08:00
lx1zhong 5f730fda4e fix compile error 2023-09-17 18:13:20 +08:00
lx1zhong ffa9560b43 fix compile error: add libraries link 2023-09-15 17:38:46 +08:00
lx1zhong abee7c0b80 fix compile error 2023-09-15 15:32:55 +08:00
lx1zhong 6da4088012 add TSZ and ADT-FSE algorithm 2023-09-15 14:30:23 +08:00
wangmm0220 be4e47e9a7 fix:add macro ASSERT_NOT_CORE to control ASSERT not core in release version 2023-07-25 16:15:33 +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
afwerar 412d3437a8 feat: add cloud grant cfg 2022-08-01 19:54:13 +08:00
afwerar fc24521621 fix(os): windows compile 3.0. 2022-04-22 09:54:27 +08:00
afwerar 2662a3b69d [TD-13254]<fix>: make 3.0 grant. 2022-04-10 19:08:16 +08:00
afwerar caf1e0e860 [TD-13759]<fix>: redefine thread api. 2022-03-20 00:45:00 +08:00
Shuduo Sang ba8d9a798e
Feature/sangshuduo/td 13063 3.0 windows (#10708)
* [TD-13063]<feature>: 3.0 on Windows

* add pthread in contrib

* fix linux compile

* fix osSemaphore

* add gnu regex for Windows

* fix compile error for Windows
2022-03-11 19:39:20 +08:00
Shengliang Guan 4540739c45 minor changes 2022-03-08 11:34:38 +08:00
Shengliang Guan 35cc1e4841 update version number 2022-03-07 16:42:45 +08:00
Shengliang Guan 514f9f6626 enable monitor gzip 2022-03-07 14:54:57 +08:00
afwerar 2c12354c2c [TD-13760]<fix>: libuv replace socket. 2022-03-07 02:07:23 +08:00
Xiaoyu Wang 83d516af4c TD-13495 planner refactoring 2022-02-13 13:31:18 -05:00
Liu Jicong 7064425632 fix compile 2022-02-04 21:10:36 +08:00
Liu Jicong 7f84cc1f79 fix valgrind error 2022-02-01 20:30:55 +08:00
Hongze Cheng 6b6f3f75af refact 2022-01-02 09:27:33 +00:00
dapan1121 d61aa9b6d1 feature/qnode 2021-12-29 17:45:14 +08:00
Hongze Cheng 7f7de09d4e make it compile 2021-12-17 15:30:11 +08:00
Hongze Cheng 53cbb261ae configure build 2021-12-17 15:05:19 +08:00
Hongze Cheng 1b6c7a5923 make compile 2021-10-11 18:36:40 +08:00
Shengliang Guan b5e26c6ec1 minor changes 2021-10-08 11:12:54 +08:00
Shengliang Guan 0264c48ad7 add cmake command for version.c.in 2021-10-08 10:24:26 +08:00
Shengliang Guan c0a171b144 [TD-10430] adjust os module 2021-10-03 10:32:14 +08:00
Shengliang Guan 7af18fc96c add some os files 2021-09-30 16:41:02 +08:00
Hongze Cheng 9bdb4f4c63 refact 2021-09-22 16:15:20 +08:00
Hongze Cheng 79aff97033 refact 2021-09-22 16:05:46 +08:00