Commit Graph

133 Commits

Author SHA1 Message Date
wangmm0220 146aefe97e fix:enable test case in sml 2023-06-25 18:01:49 +08:00
yihaoDeng 52d81476be change link opt 2023-06-07 07:33:35 +00:00
Haojun Liao b932fdb5c4
Merge pull request #21470 from taosdata/feature/TD-24070
feat:add privilege for schemaless
2023-05-25 17:52:28 +08:00
wangmm0220 f6fef3e9d6 feat:add privilege for schemaless 2023-05-25 14:54:21 +08:00
wangmm0220 fcba7e326c feat:add privilege for schemaless 2023-05-25 14:24:25 +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
wangmm0220 fb9b0a3e86 feat:add privilege for schemaless 2023-05-24 14:34:52 +08:00
Haojun Liao 4b961753a5 test: update the test case. 2023-05-12 15:13:25 +08:00
Haojun Liao f20afb7304 fix(test): update the test case. 2023-05-12 14:53:01 +08:00
wangmm0220 3fb2d7656d fix:[TS-3303]use stable name + child table name as key to save uid to avoid multi items for one table in submit block 2023-05-05 13:39:37 +08:00
wangmm0220 1d8c517844 fix:[TS-3303]use stable name + child table name as key to save uid to avoid multi items for one table in submit block 2023-05-05 10:46:54 +08:00
Haojun Liao 851193a033
Merge pull request #21060 from taosdata/fix/TS-3222
opti:change push mgr to consume msg for subscribe
2023-05-04 10:16:41 +08:00
wangmm0220 db5b5c828e fix:add log for msg push 2023-04-27 18:35:10 +08:00
wangmm0220 206c62703a fix:modify the compile error in windows for long string 2023-04-27 09:33:56 +08:00
wangmm0220 8be78ddee2 fix:[TD-23881] check the max row's length in schemaless 2023-04-26 14:23:25 +08:00
wangmm0220 ea939c1efb fix:add test cases for escape in schemaless 2023-04-20 17:41:38 +08:00
wangmm0220 2714da26e7 fix:[TS-3221] reset max stmt if execute error 2023-04-20 17:26:54 +08:00
wangmm0220 b1561c95c3 fix:add test cases for escape in schemaless 2023-04-20 15:31:18 +08:00
Xiaoyu Wang 4c04b155d5 merge main 2023-04-11 15:56:28 +08:00
wangmm0220 9493ecd18f Merge branch 'fix/TS-3081' of https://github.com/taosdata/TDengine into fix/TS-3081 2023-04-07 19:53:35 +08:00
wangmm0220 9bb921d5a8 fix:add tools to get tmq offset 2023-04-07 17:10:57 +08:00
wangmm0220 5f700d59bd fix:add tools to get tmq offset 2023-04-07 17:10:00 +08:00
wangmm0220 dd22347992 fix:add tools to get tmq offset 2023-04-07 17:05:23 +08:00
wangmm0220 f8bcdcecea fix:remove smlChildTableName from tag 2023-04-06 16:24:04 +08:00
Xiaoyu Wang c134432c45 merge main 2023-04-06 09:31:45 +08:00
Xiaoyu Wang e9d7a099cc merge main 2023-04-04 14:50:58 +08:00
Ganlin Zhao 23ec9287c9 fix: fix tsim crash on windows due to invalid input to strftime 2023-04-04 10:33:41 +08:00
Ganlin Zhao 8079532055 fix: fix tsim crash on windows due to invalid input to strftime 2023-04-03 18:26:01 +08:00
Ganlin Zhao 6c64b760a0 fix: fix tsim crash on windows due to invalid input to strftime 2023-04-03 17:58:43 +08:00
wangmm0220 2dcf68fc5e Merge branch 'main' of https://github.com/taosdata/TDengine into fix/TS-3039 2023-03-31 14:17:51 +08:00
wangmm0220 373c128a7a fix:[TS-3038] coredump if nchar data not clear SColVal in schemaless 2023-03-31 14:16:39 +08:00
Haojun Liao d2d3fc14e8
Merge pull request #20700 from taosdata/fix/TS-2940
opti:disable set enable.heartbeat.background
2023-03-31 11:33:01 +08:00
wangmm0220 a9cc66ba8f fix:int64 parse error in schemaless 2023-03-30 19:48:21 +08:00
wangmm0220 b7e6e4197d opti:disable set enable.heartbeat.background 2023-03-30 11:18:35 +08:00
Xiaoyu Wang 97855c6233
Merge pull request #20607 from taosdata/FEAT/TD-23257-3.0
feat: WAL cleanup not affected by topic consumption anymore
2023-03-27 17:58:31 +08:00
wangmm0220 e1b9aac4c4 fix:add test case for raw_block interface 2023-03-27 10:41:25 +08:00
wangmm0220 5a2e3c1603 fix:add test case for raw_block interface 2023-03-27 10:32:30 +08:00
Benguang Zhao bac441b317 fix: create database with wal_retention_period in tmq_taosx_ci.c 2023-03-25 13:21:50 +08:00
wangmm0220 5d06474f2e fix:send data batch if consume wal where subscribe db 2023-03-24 14:43:29 +08:00
wangmm0220 dcaab41a27 fix:error in optimize consume logic 2023-03-24 13:20:03 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
Haojun Liao 18b121c69c fix(tmq): fix the invalid write and do some internal refactor. 2023-03-21 13:45:43 +08:00
wangmm0220 0a54d00cd2 fix:converity scan defects 2023-03-17 14:54:27 +08:00
Haojun Liao 8f1f423c90 fix(tmq): fix the error in tmq. 2023-03-14 00:37:09 +08:00
Haojun Liao 7f2aae69d4 fix(tmq): fix error in taosx 2023-03-13 01:54:29 +08:00
Xiaoyu Wang 4c8bab7e58 merge main 2023-03-08 10:59:33 +08:00
wangmm0220 cea32f2e3c fix:give error if col is same in schemless & fix json parse error in TD-22903 2023-03-04 18:18:20 +08:00
wangmm0220 3bfd156616 fix:[TD-22898]:modify schema if schema change 2023-03-04 17:37:38 +08:00
wangmm0220 e54e12eff0 fix:give error if col is same in schemless & fix json parse error in TD-22903 2023-03-04 11:57:27 +08:00
54liuyao fe4123e814 feat:window close && ignore expired 2023-02-28 18:20:58 +08:00