Commit Graph

193 Commits

Author SHA1 Message Date
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 b93f653d7e feat: enhance ttl, deletetime modified by writing-ops
new config item: ttlChangeOnWrite (default 0)
ttl delete time changes on last write if true
2023-06-19 19:03:35 +08:00
wangmm0220 78db3520a6 fix:conflict 2023-05-29 14:57:03 +08:00
dapan1121 2713f4f6d4 feat: support create topic as stable with conditions 2023-05-25 19:01:58 +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
dapan1121 69795286fa Merge remote-tracking branch 'origin/main' into enh/tsbsPerf.4 2023-05-12 13:46:16 +08:00
dapan1121 5db5205e31 fix: schema/tag version update to int32 2023-04-26 13:41:16 +08:00
chenhaoran 7d7a0769b3 Merge remote-tracking branch 'origin/main' into enh/tsbsPerf.1 2023-04-21 16:20:37 +08:00
dapan1121 7f518ca4ea feat: support cache db cfg 2023-04-13 10:54:57 +08:00
Xiaoyu Wang 5ce6220106
Merge pull request #20781 from taosdata/szhou/replace-function
feature: udf replace function
2023-04-11 17:25:21 +08:00
shenglian zhou 32523d72f9 fix: add created time to file name and keep file reuse 2023-04-08 10:11:57 +08:00
shenglian zhou 4612d6d14b fix: catalog not processing version 2023-04-06 15:37:19 +08:00
dapan1121 80798dd934 fix: job retry issue 2023-03-28 09:20:53 +08:00
Haojun Liao 22aa03307c fix(query): fix syntax errors on centos. 2023-02-24 11:38:54 +08:00
dapan1121 436bc5cbe8 enh: remove asserts 2022-12-30 15:35:03 +08:00
Hongze Cheng 259b7e8a8a fix compile issue 2022-12-06 14:53:02 +08:00
Hongze Cheng 899d7b0bcc Merge branch '3.0' of https://github.com/taosdata/TDengine into refact/submit_req 2022-12-06 14:37:22 +08:00
dapan1121 9cb07360de
Merge pull request #18643 from taosdata/enh/insert_multi_table_optimize
enh: optimize multiple table insert
2022-12-04 16:48:15 +08:00
dapan1121 e455269220 fix: memory leak and other issues 2022-12-03 18:46:59 +08:00
dapan1121 0143b4fe64 enh: optimize stmt auto create table 2022-12-03 14:56:51 +08:00
Shengliang Guan d9c261cd13 refact: remove some error codes 2022-12-03 10:17:02 +08:00
dapan1121 b08ee99c4c fix: vgroup array not made in some cases 2022-12-02 18:09:38 +08:00
dapan1121 2e75de8368 fix: fix submit response message handling 2022-12-01 19:26:26 +08:00
dapan1121 7dea2e99d3
Merge pull request #17973 from taosdata/fix/TD-20273
fix: free unfinished ahandle when cli quit
2022-11-10 13:52:32 +08:00
dapan1121 9f7e06721c enh: support vgroup epset update 2022-11-09 18:48:52 +08:00
yihaoDeng 7b30a6ee23 free unfinished ahandle while quit 2022-11-08 20:45:11 +08:00
Shengliang Guan fb7d45303b fix: add log for use db rsp 2022-11-08 13:46:18 +08:00
dapan1121 973a942d0f enh: support get meta only from cache 2022-11-01 11:43:40 +08:00
dapan1121 ba0913e645 fix: remove not used code 2022-10-26 19:25:12 +08:00
haoranchen 06f276f137
Update querymsg.c 2022-10-20 21:19:33 +08:00
haoranchen 93742337fb
Update querymsg.c 2022-10-20 21:14:46 +08:00
dapan1121 2fa970e8bc Merge branch 'fix/TD-19312' of github.com:taosdata/TDengine into fix/TD-19312 2022-10-20 19:44:23 +08:00
dapan1121 c2d071a2e4 fix: add debug log 2022-10-20 19:43:33 +08:00
Xiaoyu Wang 601f0f3edf fix: handle coverity scan 2022-10-19 13:56:39 +08:00
dapan1121 0fe14f0b16 fix: fix coverity issues 2022-10-18 16:33:27 +08:00
dapan1121 cf9abe7258 fix: fix coverity check issues 2022-10-17 19:48:36 +08:00
afwerar f80dbfb6f5 fix: memory param over 2022-10-13 18:48:06 +08:00
Hongze Cheng 8a033aca5c more code format 2022-10-13 14:25:37 +08:00
Hongze Cheng 52bf961622 more code 2022-10-12 11:09:42 +08:00
yihaoDeng b82f27ec03 tsc: handle schedule error 2022-09-13 17:48:57 +08:00
dapan1121 dc4504b4c2 feat: support table name prefix/suffix config 2022-09-05 15:09:23 +08:00
dapan1121 150956ffd3 enh: update tbMeta after creating table 2022-08-24 13:19:52 +08:00
dapan1121 0ebd3281c5 enh: update table meta after creating table 2022-08-23 18:26:27 +08:00
dapan1121 9cd7c54e25 fix: fix task sched crash issue 2022-08-12 10:41:02 +08:00
slzhou aa81107a58 fix: fix table meta size calculation error 2022-08-08 16:08:58 +08:00
dapan1121 bc7698366a enh: launch tables in same db 2022-08-04 11:11:26 +08:00
dapan1121 85684cebb8 fix: fix mem leak 2022-07-20 18:48:27 +08:00
dapan1121 03e9b15237 fix: fix taosc memory leak 2022-07-18 13:32:17 +08:00
yihaoDeng 42d6ab3b00 refactor client queue 2022-07-12 20:00:26 +08:00