Commit graph

360 commits

Author SHA1 Message Date
wangmm0220
78db3520a6 fix:conflict 2023-05-29 14:57:03 +08:00
wangmm0220
a71878d07f feat: support create topic as stable with conditions 2023-05-29 11:46:59 +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
wade zhang
1ade314043
Merge pull request #21325 from taosdata/feat/force-drop-dnode
Feat/force drop dnode
2023-05-19 09:23:54 +08:00
dmchen
32c6ef4b6e fix ci 2023-05-17 23:09:16 +08:00
cadem
72c543563f force drop dnode 2023-05-15 11:20:27 +08:00
Haojun Liao
6f7add8870 refactor: do some internal refactor. 2023-05-15 10:48:03 +08:00
dmchen
4eed65432c colid overflow 2023-05-08 13:26:11 +08:00
wade zhang
ca790277b9
Merge pull request #21140 from taosdata/fix/int16-overflow
int16 overflow
2023-05-06 13:27:55 +08:00
dm chen
4242f2c4cc
Update mndStb.c 2023-05-05 17:49:27 +08:00
dm chen
59f103a477
Update mndStb.c 2023-05-05 17:47:32 +08:00
dapan1121
5006ecc484 fix: stable name not responsed while stable removed issue 2023-05-05 11:45:14 +08:00
dmchen
766b752c18 if statement for overflow 2023-05-04 18:35:37 +08:00
dmchen
af0ca38a89 int16 overflow 2023-05-04 17:12:02 +08:00
Xiaoyu Wang
4c04b155d5 merge main 2023-04-11 15:56:28 +08:00
cademfly
db725c6f6d show priviledge format 2023-03-30 18:53:50 +08:00
dapan1121
5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
kailixu
aa4c1cb5eb chore: more code 2023-03-20 17:44:34 +08:00
kailixu
179579f204 chore: more code 2023-03-20 17:41:22 +08:00
kailixu
d90c8e834a chore: var def optimization 2023-03-18 13:07:15 +08:00
kailixu
f297f67698 fix: show obj 2023-03-17 16:40:29 +08:00
kailixu
7ed966e3f1 fix: select ins_columns from stb/tb 2023-03-17 12:33:34 +08:00
yihaoDeng
07ca8eb8e0 enh: add trace to transaction 2023-03-16 10:25:46 +00:00
kailixu
ba5c3fb2ab fix: select ins_columns for stb with 4096 columns 2023-03-16 00:01:54 +08:00
Xiaoyu Wang
5856a39827
Merge pull request #20123 from taosdata/fix/3.0_merge_main
merge main
2023-02-25 10:01:26 +08:00
Hui Li
965d91572a
Merge pull request #20148 from taosdata/fix/3_coverity
fix(query): fix syntax errors on centos.
2023-02-24 17:39:12 +08:00
Xiaoyu Wang
a94fd9ec47 fix: alter stable error 2023-02-24 14:54:35 +08:00
Haojun Liao
22aa03307c fix(query): fix syntax errors on centos. 2023-02-24 11:38:54 +08:00
Xiaoyu Wang
1ab144609e merge main 2023-02-23 14:58:22 +08:00
yihaoDeng
71a1301034 add rename and del tag case 2023-02-20 11:29:16 +08:00
Haojun Liao
7fe250412f refactor:do some internal refactor. 2023-02-20 10:13:11 +08:00
Haojun Liao
8d187efc18 refactor:do some internal refactor. 2023-02-20 10:04:08 +08:00
yihaoDeng
f2a52f0831 suppprt tag rename 2023-02-20 00:09:26 +08:00
yihaoDeng
bfe0ac61b9 add index case 2023-02-19 20:43:15 +08:00
yihaoDeng
fa8bebf24d opt: opt tag index 2023-02-14 17:44:29 +08:00
yihaoDeng
df296c15f7 opt: opt tag index 2023-02-14 17:31:10 +08:00
yihaoDeng
a929aa22d8 merge 3.0 2023-02-12 10:48:18 +08:00
wangmm0220
762f6466f3 fix:conflicts from 3.0 2023-02-06 09:23:29 +08:00
yihaoDeng
a05eb4b110 refactor tag index 2023-02-03 22:19:01 +08:00
Xiaoyu Wang
5d499e52f9 merge main 2023-02-03 17:13:11 +08:00
wangmm0220
c330588d55 fix:error in subscribe table for taosx 2023-02-03 15:35:13 +08:00
wangmm0220
a32c852039 fix:add ttl drop response for mnode 2023-02-02 16:13:17 +08:00
yihaoDeng
151df3bf8f opt tag filter 2023-02-01 21:02:52 +08:00
yihaoDeng
c83b697eb3 fix invalid ver 2023-01-31 17:00:19 +08:00
yihaoDeng
38389ff1ef del invalid macro 2023-01-29 21:15:54 +08:00
yihaoDeng
bfd711c08f Merge remote-tracking branch 'origin/3.0' into dynamicIdx 2023-01-18 22:01:49 +08:00
wangmm0220
8af5230bc8 fix:add logic for ins_columns 2023-01-11 23:55:53 +08:00
wangmm0220
672378f000 fix:add logic for ins_columns 2023-01-11 18:54:43 +08:00
wangmm0220
19e72938f6 fix:add logic for ins_columns 2023-01-11 15:06:42 +08:00
yihaoDeng
3e738363aa add/delete tag index 2023-01-11 13:36:07 +08:00