Commit Graph

752 Commits

Author SHA1 Message Date
dapan1121 099f72e84a fix: memory issues 2023-10-27 11:36:17 +08:00
xsren 355ec86926 fix error when taos_query_a param is null
c_test missing on linux

mem leak

wal_test  pageBufferTest on linux

tfsTest on linux
2023-10-26 16:50:45 +08:00
dapan1121 dbbceae061 fix: union all view issue 2023-10-24 11:29:04 +08:00
dapan1121 969b002936 enh: support view privilege 2023-10-20 08:41:49 +08:00
dapan1121 aab4cb98dc enh: create & drop view meta processing 2023-10-13 19:16:37 +08:00
dapan1121 a0699d758c Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-13 16:51:38 +08:00
kailixu e4291cf440 fix: reset hb flag for duplicated user key 2023-10-11 20:12:10 +08:00
dapan1121 d229492616 Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-09 18:34:08 +08:00
dapan1121 5b639a172d feat: support query from view 2023-10-08 18:36:06 +08:00
dapan1121 a61d90f672 enh: remove column list 2023-09-22 11:36:53 +08:00
dapan1121 a67b0c99fc feat: support create/drop view 2023-09-21 19:28:07 +08:00
dapan1121 64da3f4ef9
Merge pull request #22978 from taosdata/szhou/show-db-table
enhance: show normal/child tables and show user/system databases
2023-09-21 16:55:26 +08:00
slzhou de411ebad1 fix: review comments 2023-09-21 09:55:13 +08:00
dapan1121 7d076d2db9 fix: memory leak issue 2023-09-21 09:49:43 +08:00
dapan1121 aa86490ed2 fix: sync param free issue 2023-09-20 18:57:00 +08:00
dapan1121 9796483609 enh: support async fetch for sync request 2023-09-20 15:42:25 +08:00
slzhou f4dbd5d9c9 enhance: show normal/child tables and show user/system databases 2023-09-19 16:14:17 +08:00
dapan1121 14e8db289d feat: support view 2023-09-19 14:19:54 +08:00
shenglian zhou 94a616fcc1 fix: save and continue 2023-09-18 16:59:07 +08:00
wangmm0220 f266d51764 feat:support varbinary type 2023-08-16 19:05:07 +08:00
yihaoDeng 6532afa7b8 fix err while connect invalid fqdn 2023-07-24 18:49:13 +08:00
yihaoDeng 2aacee05be Merge branch 'fix/TD-25308' of https://github.com/taosdata/TDengine into fix/TD-25308 2023-07-24 18:48:23 +08:00
yihaoDeng 842a0bc8c3 fix err while connect invalid fqdn 2023-07-24 18:48:09 +08:00
yihaoDeng 0b707a108e fix err while connect invalid fqdn 2023-07-24 10:28:52 +00:00
yihaoDeng 95a1db6e89 fix err while connect invalid fqdn 2023-07-24 07:09:03 +00:00
yihaoDeng 79f01ad655 add version check in rpc 2023-07-05 08:16:25 +00:00
dapan1121 4dae9f4eff merge main to 3.0 2023-06-26 18:43:00 +08:00
dapan1121 59b8cfbc7d enh: add sub_query in systable and kill subquery 2023-06-12 17:14:41 +08:00
dapan1121 170182fecd feat: support fill history with sub request 2023-06-12 16:10:54 +08:00
wangmm0220 208ba2ef4d fix:memory leak 2023-05-26 10:45:37 +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 9fcf56a4ee feat: support meta cleanup 2023-05-16 10:51:58 +08:00
dapan1121 9551a269b3 feat: support log slow query by default 2023-04-24 16:45:34 +08:00
dapan1121 5fe99c5ad2 feat: support log long query 2023-04-23 15:54:15 +08:00
Haojun Liao f8b672f09f other: merge main. 2023-04-14 09:07:18 +08:00
Haojun Liao f5b52749c2 refactor: do some internal refactor. 2023-04-09 01:39:09 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
Haojun Liao 625b2dc901
Merge pull request #20513 from taosdata/fix/TD-23136
fix:converity scan defects
2023-03-20 15:37:59 +08:00
dapan1121 4685fb4870 fix: no error passed issue 2023-03-17 17:52:15 +08:00
wangmm0220 0a54d00cd2 fix:converity scan defects 2023-03-17 14:54:27 +08:00
dapan1121 2bb7d6c799 fix: invalid write issue 2023-03-17 14:38:03 +08:00
Xiaoyu Wang 66bb55187d Merge remote-tracking branch 'origin/main' into fix/3.0_merge_main 2023-03-08 18:30:24 +08:00
Xiaoyu Wang 9be3e20276 fix: check the compatibility of client version and server version 2023-03-08 15:13:11 +08:00
Haojun Liao 10a119e3fb
Merge pull request #20106 from taosdata/fix/TD-22667-3.0
fix:error by coverity scan
2023-03-01 13:31:59 +08:00
WANG MINGMING 5dfc9ed4d0
Merge branch '3.0' into fix/TD-22667-3.0 2023-02-28 09:52:34 +08:00
Yihao Deng db47cb5805
Merge branch 'main' into fix/toManySeesion 2023-02-25 17:04:56 +08:00
yihaoDeng 84706fe586 fix: limit session num 2023-02-24 21:20:15 +08:00
yihaoDeng dd2e9697b5 fix: limit session num 2023-02-24 20:39:25 +08:00
Haojun Liao 22aa03307c fix(query): fix syntax errors on centos. 2023-02-24 11:38:54 +08:00
wangmm0220 91d5df423f fix:error by coverity scan 2023-02-22 15:48:39 +08:00
Xiaoyu Wang 7337f5ff7d
Merge pull request #20052 from taosdata/fix/3.0_merge_main
merge main
2023-02-21 16:27:19 +08:00
Xiaoyu Wang c597de099f merge main 2023-02-20 13:41:27 +08:00
dapan1121 1128b1222b feat: add memory debug option 2023-02-17 17:40:14 +08:00
dapan1121 e2bc0383f2 fix: refact client statistics collection 2023-02-17 16:30:14 +08:00
Xiaoyu Wang 09925437e3 merge main 2023-02-08 09:51:52 +08:00
dapan1121 1f3f92c2cf
Merge pull request #19777 from taosdata/fix/TD-22145
fix: fix fd limit crash
2023-02-06 16:22:02 +08:00
dapan1121 18e3450c11 fix: client update epset crash issue 2023-02-06 14:01:43 +08:00
yihaoDeng e14994c23f fix: fail fast 2023-02-03 12:45:20 +08:00
yihaoDeng cdf362b588 fix: fix fd limit crash 2023-02-03 12:08:16 +08:00
Xiaoyu Wang 24157e78d6 merge main 2023-01-28 17:52:58 +08:00
xinsheng Ren f966197cea
Fix/xsren/td 21762/sem mem leak basemain (#19587)
* TD-21762 sem_init cause mem leak on windows

* fix/memleak

Co-authored-by: facetosea <25808407@qq.com>
2023-01-17 16:30:06 +08:00
dapan1121 6b259777ad fix: move crash report to shell 2023-01-17 11:18:49 +08:00
xinsheng Ren fce58a1273
Fix/xsren/td 21762/sem mem leak (#19580)
* TD-21762 sem_init cause mem leak on windows

* fix/memleak

Co-authored-by: facetosea <25808407@qq.com>
2023-01-17 11:12:57 +08:00
Shengliang Guan d90eef6656 Merge branch '3.0' into merge/mainto3.0_0108 2023-01-08 09:54:21 +08:00
wangmm0220 ce3fbae952 fix:ASSERT in client mode & converity error 2023-01-06 14:37:38 +08:00
dapan1121 a551641b6c fix: add mac crash report processing 2023-01-04 19:12:16 +08:00
dapan1121 3bccd891bb fix: add debug code 2023-01-04 16:51:46 +08:00
Alex Duan 0c422345b3 feat: support show cluster alive; and show db.alive; 2022-12-29 18:07:57 +08:00
Shengliang Guan 78c14a2c88 Merge remote-tracking branch 'origin/3.0' into merge/mainto3.0_1228 2022-12-28 14:59:02 +08:00
dapan1121 66cece62de
Merge pull request #19046 from taosdata/fix/TD-21180-3.0
feat(rpc):  return new error code TSDB_CODE_RPC_VGROUP_NOT_CONNECTED
2022-12-26 18:08:48 +08:00
Haojun Liao 723efba79b
Merge branch '3.0' into refact/submit_req 2022-12-26 13:25:25 +08:00
Shengliang Guan 664dcb6b4e Merge branch 'main' into merge/mainto3.0_1226 2022-12-26 09:26:54 +08:00
Shengliang Guan 9a2d56905d enh: print ipstr on taos_connect 2022-12-23 18:04:25 +08:00
Xiaoyu Wang 0c269c317b merge 3.0 2022-12-23 17:50:05 +08:00
Alex Duan d0f789744b query(fix): return new error code except connect msg 2022-12-23 16:04:48 +08:00
Alex Duan 99ef55c7d4 query(fix): return new error code except connect msg 2022-12-23 16:02:08 +08:00
Alex Duan cd1b87031a fix(query): modify error describe 2022-12-22 10:22:51 +08:00
Alex Duan ced76efde0 feat(rpc): move the check msgType to cliet 2022-12-21 12:44:29 +08:00
Alex Duan 5ca52595ae feat(rpc): move the check msgType to client build error 2022-12-21 12:20:26 +08:00
Alex Duan 15160544c5 feat(rpc): move the check msgType to client 2022-12-21 11:48:24 +08:00
Shengliang Guan 86ff8f381f
Merge pull request #19042 from taosdata/enh/3.0_planner_optimize
enh: improve unit tests
2022-12-20 21:53:25 +08:00
Xiaoyu Wang ad7f9b274b enh: improve unit tests 2022-12-20 16:53:08 +08:00
yihaoDeng 23c7fa73f0 fix mem leak 2022-12-19 21:39:26 +08:00
Haojun Liao fdade6d6a3
Merge branch '3.0' into refact/submit_req 2022-12-19 11:24:00 +08:00
yihaoDeng 6fb45a5f47 remove unused param 2022-12-13 20:16:45 +08:00
Haojun Liao 48f7fc5c3d
Merge branch '3.0' into refact/submit_req 2022-12-12 18:11:17 +08:00
dapan1121 1aff3cceeb fix: show queries crash issue 2022-12-10 15:03:24 +08:00
Shengliang Guan 6d94afe48f
Revert "refact: adjust some assert cases" 2022-12-07 21:51:17 +08:00
wangmm0220 a4d03b43a0 opti: async->sync for schemaless 2022-12-07 20:33:54 +08:00
Shengliang Guan d5126d469a refact: replcase ASSERT with tAssert 2022-12-07 18:42:48 +08:00
Shengliang Guan f69a188f7e refact: replcase ASSERT with tAssert 2022-12-07 18:37:40 +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 f9f60a8f39
Merge pull request #18646 from taosdata/fix/TD-20684-3.0
feat(api): add new api int64_t taos_affected_rows64
2022-12-04 16:47:51 +08:00
Shengliang Guan d9c261cd13 refact: remove some error codes 2022-12-03 10:17:02 +08:00
Alex Duan 855b0c8cbe feat(api): add int64 affected rows modify tmsg.h struct 2022-12-02 20:57:46 +08:00
Alex Duan 9fb4fa0a7f feat(api): add int64 affected rows modify tmsg.h struct 2022-12-02 20:48:39 +08:00
Alex Duan 2aa65c4b9c feat(shell): affected rows int64 2022-12-02 17:09:04 +08:00
dapan1121 2e75de8368 fix: fix submit response message handling 2022-12-01 19:26:26 +08:00
wangmm0220 8cfdae7195 fix:conflicts 2022-11-29 23:23:39 +08:00
Shengliang Guan 99c00acf9f
Merge pull request #18502 from taosdata/enh/changeParamter2
enh: adjust para
2022-11-29 09:22:13 +08:00