Commit Graph

76 Commits

Author SHA1 Message Date
Haojun Liao 1c66f22c2b refactor: move to msg. 2024-11-18 15:00:30 +08:00
Haojun Liao 131be84dec refactor: do some internal refactor 2024-11-15 17:03:22 +08:00
Haojun Liao f65651f6ef fix(stream): update the msg encoder. 2024-11-15 00:19:35 +08:00
Jinqing Kuang 0199c8dddf fix(query)[TD-32415]. Replace memory-unsafe functions
- Replace memory unsafe functions with secure alternatives
- Fix automatical generation of subtable names
2024-10-11 14:34:19 +08:00
kailixu d7fcf21f8b enh: support drop table with uid 2024-09-17 15:41:10 +08:00
Haojun Liao 67c883f587 other: merge 3.0 2024-07-28 13:07:08 +08:00
Haojun Liao 7be2ecbe1f fix(common): check the return value. 2024-07-27 18:55:34 +08:00
Shungang Li 5b8a67e59e feat: (errcode) tglobal.c 2024-07-26 23:07:08 +08:00
Shungang Li d908c1d710 feat: (errcode) more for ttime.c/geomFunc.c/geosWrapper.c 2024-07-24 17:29:06 +08:00
wangmm0220 d4b31cfd8e fix:[TS-4921] errors in test 2024-06-26 18:32:09 +08:00
wangmm0220 ed16b1e8db fix:conflict from 3.0 2024-06-24 12:03:10 +08:00
kailixu 431c0cf331 fix: compatibility for msg and error code 2024-06-22 23:04:56 +08:00
wangmm0220 7b997b4433 fix:[TS-4921] print slow log scope 2024-06-22 15:38:24 +08:00
wangmm0220 65fac20367 fix:[TS-4921] merge from 3.0 2024-06-22 15:02:34 +08:00
kailixu 79f8ab4596 fix: compatibility for msg and error code 2024-06-21 08:07:18 +08:00
wangmm0220 5dcfed2d51 feat:[TS-4921]add logic for slow log 2024-06-19 18:54:26 +08:00
cris.pei c25b6f1efe Add the command-line argument '--output-config' for generating configuration in test cases that increase the compatibility of message types and error codes 2024-06-17 20:49:39 +08:00
cris.pei 26c9b757de Add the command-line argument '--output-config' for generating configuration in test cases that increase the compatibility of message types and error codes 2024-06-17 20:13:00 +08:00
kailixu 9d2894bb6d enh: support get msg string and msg number 2024-06-11 10:56:37 +08:00
kailixu ed33493521 enh: support get msg string and msg number 2024-06-10 22:56:44 +08:00
wangmm0220 f21eeae56c fix:[TD-30180]error in judging if groupId already added to the end of table name 2024-05-21 16:57:00 +08:00
wangmm0220 919e2848b3 fix:remove dot from child table in stream 2024-05-15 13:40:33 +08:00
Hongze Cheng ac1d7c2bdb fix compile error 2024-02-27 10:08:02 +08:00
kailixu 17ae867ec6 fix: grammar of init on windows 2024-02-26 09:07:11 +08:00
kailixu bc456e6183 fix: grammar of init on windows 2024-02-26 08:51:06 +08:00
kailixu 785d1672b8 test: add test for dataformat 2024-02-26 02:05:00 +08:00
kailixu c54dfc36c2 enh: coverity for dataformatTest 2024-02-26 01:35:18 +08:00
kailixu 4ceb085613 enh: coverity of trow 2024-02-26 01:03:08 +08:00
Yihao Deng 20aa81c96a add test case 2024-01-22 09:00:24 +00:00
Bob Liu 9fa884a693 toUIntegerEx 2023-12-06 01:24:23 +08:00
Bob Liu d2b2dee256 opt & add test case 2023-12-05 22:00:33 +08:00
Bob Liu 7e8f3579de accept float data as int data input 2023-12-01 18:33:01 +08:00
wangjiaming0909 ea5adf5511 report not supported error when DDD but no DD specified 2023-11-09 20:20:00 +08:00
wangjiaming0909 b71a013b8d fix: nano seconds database error 2023-11-02 09:36:46 +08:00
wangjiaming0909 70850697a4 feat: support to_timestamp/to_char fix comments 2023-10-27 09:54:16 +08:00
wangjiaming0909 f299a28109 feat: support to_timestamp/to_char 2023-10-23 19:36:03 +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
Xiaoyu Wang 1ab144609e merge main 2023-02-23 14:58:22 +08:00
Haojun Liao 8d187efc18 refactor:do some internal refactor. 2023-02-20 10:04:08 +08:00
Hongze Cheng c1db8a9e4d refact code 2022-11-23 20:13:27 +08:00
Hongze Cheng ac0ac3a577 Merge branch 'enh/cv_optimize' of https://github.com/taosdata/TDengine into feat/stream_compression 2022-09-23 19:08:21 +08:00
Hongze Cheng cac18913d5 make it unit test compile 2022-09-23 19:07:18 +08:00
Hongze Cheng f870f7e453 fix gtest compile error 2022-09-21 16:08:51 +08:00
Cary Xu 0f5983ad88 fix: merge dup rows in client 2022-07-20 20:30:54 +08:00
Hongze Cheng 31d3ae244e make it compile 2022-07-12 02:19:38 +00:00
Hongze Cheng 85b4896fa4 more row refact 2022-07-11 12:48:16 +00:00
Haojun Liao 14ddf539e0 refactor(query): do some internal refactor. 2022-06-22 17:21:04 +08:00
Cary Xu 8997f2cdc1 fix: solve a non-standard explicit type conversion 2022-06-09 16:26:30 +08:00
Cary Xu fb3b66413e enh: code optimization for trow 2022-06-09 15:13:58 +08:00
Cary Xu 08a19b7b28 enh: set 0 in flen part for tsrow 2022-06-09 15:00:48 +08:00