Commit Graph

286 Commits

Author SHA1 Message Date
Haojun Liao 1f6b7bbcff fix(util): fix dead lock. 2024-04-27 10:08:15 +08:00
Haojun Liao b3d2ccec83
Merge pull request #25483 from taosdata/fix/3_liaohj
fix(query): add ts in cache_scan_operator if pk exists and only retri…
2024-04-25 22:32:26 +08:00
Haojun Liao c7806ebca2 fix(util): fix race condition. 2024-04-25 13:58:02 +08:00
Yihao Deng f3feb9dabe refactor compress 2024-04-23 06:37:18 +00:00
dm chen 1196ea72da
Merge branch '3.0' into feat/TD-24834 2024-04-17 17:13:29 +08:00
kailixu 74afb8deae chore: solve conflicts 2024-04-17 10:52:34 +08:00
Yihao Deng 6f9de676f0 Merge branch 'fix/compress_3.0' into feat/compress_3.0 2024-04-16 09:27:26 +00:00
dapan1121 55d118d17c Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-04-16 09:12:04 +08:00
Yihao Deng ea9385912f Merge branch '3.0' into feat/compress_3.0 2024-04-15 09:06:30 +00:00
kailixu 123090e18a fix: solve conflicts 2024-04-15 16:12:15 +08:00
dm chen 4d660d89c0
Merge branch '3.0' into feat/TD-24834 2024-04-15 15:12:32 +08:00
dapan1121 319ab5f2c2 enh: support hash join 2024-04-12 15:44:23 +08:00
dapan1121 86db8efcda enh: support hash join 2024-04-10 19:27:36 +08:00
Minglei Jin 6eb014e32b Merge branch 'feat/TS-4243-3.0' into enh/TD-28945-pk 2024-04-09 19:11:46 +08:00
Minglei Jin ca1262c5c5 cos/multi-write: parser part 2024-04-08 10:31:26 +08:00
factosea 9ddc0b51cb merge 2024-03-29 10:37:59 +08:00
dapan1121 74cef4ac6b fix: window join filter issue 2024-03-28 13:45:55 +08:00
kailixu d64594932b feat: support database encryption 2024-03-27 20:03:38 +08:00
slzhou 9d2c310616 fix: remove the extract space after column type for none pk column 2024-03-25 10:16:22 +08:00
dapan1121 91d3848c71 fix: case issue 2024-03-23 20:24:50 +08:00
dapan1121 e6caf6fd43 fix: binary copy and case issue 2024-03-22 11:02:21 +08:00
dapan1121 3835a5b349 fix: error log and union issue 2024-03-22 08:47:07 +08:00
slzhou c7f108181d feat:show create table and desc table 2024-03-19 16:33:05 +08:00
factosea 9711c830fe show create table 2024-03-13 15:17:43 +08:00
factosea b10deacd63 show create table tbname 2024-03-13 11:39:07 +08:00
factosea 5dd4d05b2e desc table 2024-03-12 16:46:41 +08:00
dapan1121 98ed2458ea Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-02-20 17:39:51 -08:00
dapan1121 c4dbae3a5a enh: add window join ut 2024-02-20 17:13:29 -08:00
dapan1121 b26716f2e8 Merge remote-tracking branch 'origin/3.0' into feat/TD-27337 2024-02-18 22:15:43 -08:00
54liuyao 7db7c02150 explain 2024-02-19 13:39:07 +08:00
54liuyao 7a040b3c89 ci 2024-02-19 11:35:08 +08:00
54liuyao e98a67bb9d ci 2024-02-19 11:12:33 +08:00
54liuyao c9753ab9df explain count window 2024-02-07 08:55:18 +08:00
kailixu 9458b86b41 feat: support uniq grant 2024-01-31 16:09:06 +08:00
dapan1121 abdf6d337a enh: push down conditions 2023-11-29 20:06:30 +08:00
Shungang Li a96e21aabd enh: refactor dynamic config 2023-11-13 16:28:42 +08:00
dapan1121 dd0ac98a5f fix: correct no data load 2023-11-09 19:25:44 +08:00
dapan1121 6352b28b4c fix: split scan columns from cache last scan 2023-11-09 09:47:55 +08:00
dapan1121 38196f37b9 Merge remote-tracking branch 'origin/3.0' into feat/TD-24802 2023-11-08 18:48:13 +08:00
dapan1121 49ebb7145e enh: support split cache last and other functions 2023-11-08 18:42:41 +08:00
dapan1121 c2ec373557 Merge remote-tracking branch 'origin/3.0' into feat/TD-24802 2023-11-07 10:09:10 +08:00
dapan1121 0ed4d1507f feat: support non_sort mode 2023-11-07 09:23:06 +08:00
Shungang Li c6f5e2a9bd enh: add dynamic configuration 2023-11-03 14:28:02 +08:00
dapan1121 91df56fcf0 Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-31 18:44:54 +08:00
kailixu c77153cb81 enh: use placeholder '-' for interval of 1st retention level 2023-10-30 14:02:31 +08:00
dapan1121 969b002936 enh: support view privilege 2023-10-20 08:41:49 +08:00
dapan1121 a0699d758c Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-13 16:51:38 +08:00
Haojun Liao eb4449999f other: merge 3.0 2023-10-12 10:33:48 +08:00
dapan1121 f5768494b4 feat: support describe view command 2023-10-11 18:49:47 +08:00
dapan1121 478de7ae56 feat: add show create view implement 2023-10-11 10:38:22 +08:00
Shungang Li a7507d26b0 feat: alter local/dnode asynclog 2023-10-08 18:26:25 +08:00
Shungang Li 743a5b0640 feat: add db config item keep_time_offset 2023-09-25 15:46:08 +08:00
dapan1121 94ad93febd
Merge pull request #23003 from taosdata/feat-pipelined-agg/TD-25620
feat: pipelined agg when partition by col slimit
2023-09-22 09:48:45 +08:00
wangjiaming0909 f2832b5aa7 feat: pipelined agg when partition by col slimit 2023-09-21 17:45:49 +08:00
slzhou de411ebad1 fix: review comments 2023-09-21 09:55:13 +08:00
slzhou f208eefdf2 fix: fix sanitizer error 2023-09-19 16:21:44 +08:00
slzhou f4dbd5d9c9 enhance: show normal/child tables and show user/system databases 2023-09-19 16:14:17 +08:00
shenglian zhou 94a616fcc1 fix: save and continue 2023-09-18 16:59:07 +08:00
dapan1121 0b18689fa6 fix: fix coverity issues 2023-09-06 10:57:49 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
kailixu 700d9a6d68 fix: sma option for show create table 2023-08-10 13:02:34 +08:00
slzhou cb9c6c1256 fix: compilation error 2023-08-03 21:47:33 +08:00
slzhou 2deeec93bf fix: explain with state window 2023-08-03 21:43:08 +08:00
dapan1121 cbe03ef212
Merge pull request #22069 from taosdata/enh/TS-2288
enh: add scope for show xx variables
2023-07-19 18:01:11 +08:00
kailixu 52c56f4bd7 chore: support non sma option () if supported 2023-07-17 22:40:22 +08:00
kailixu cf39fcdd12 fix: add sma option when show create table for stb/ntb 2023-07-17 22:24:27 +08:00
Ganlin Zhao 929db3d647 Merge branch '3.0' into enh/TS-2288 2023-07-17 16:09:07 +08:00
Ganlin Zhao b402782784 add scope for information_schema.ins_dnode_variables 2023-07-14 15:56:29 +08:00
Ganlin Zhao cdb3453812 add show local variables scope 2023-07-14 14:38:35 +08:00
Haojun Liao e0ea0f2df4
Merge pull request #22020 from taosdata/fix/liaohj
other: merge main
2023-07-13 17:55:28 +08:00
Ganlin Zhao c3cc217bd0 Merge branch '3.0' into enh/TS-2500 2023-07-11 16:24:16 +08:00
Ganlin Zhao 6efa688c15 remove trailing space 2023-07-11 14:12:02 +08:00
Ganlin Zhao 48bc377233 add show command for system db 2023-07-11 13:56:02 +08:00
Haojun Liao 3ffdbe923d other: merge 3.0 2023-07-11 09:12:57 +08:00
Ganlin Zhao 3270f76aba remove wal_roll_period/wal_segment_size from show create database
commands
2023-07-10 15:56:39 +08:00
dapan1121 e7ced3e9cc fix: desc table without permission to view any column issue 2023-07-07 09:04:44 +08:00
Haojun Liao ceb78fdad2
Merge branch '3.0' into refact/fillhistory 2023-06-24 18:53:48 +08:00
wangjiaming0909 fb4f174fbc feature: add input, output ts order for execution plans 2023-06-16 10:26:09 +08:00
Haojun Liao 55724157c4 refactor: remove one function. 2023-06-15 10:40: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
dapan1121 ee2521a6ab Merge remote-tracking branch 'origin/3.0' into feat/TD-22746 2023-05-16 10:53:21 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
dapan1121 daedb3618b Merge remote-tracking branch 'origin/3.0' into feat/TD-22746 2023-05-10 17:47:11 +08:00
dapan1121 79d4403377 feat: add client meta limitation 2023-05-10 17:44:53 +08:00
dapan1121 a1eefd25ea fix: count wrong group number issue 2023-05-09 11:33:47 +08:00
dapan1121 3c2fc48e74 feat: support new table_prefix/table_suffix mode 2023-04-21 14:17:07 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
Haojun Liao 15cbbd3a14 fix(query): fix error in show cluster alive. 2023-03-14 21:25:52 +08:00
dapan1121 2a5074870d fix: add missing db options in show create database result 2023-03-02 11:33:29 +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
dapan1121 386f184ed7 feat: disable async log 2023-02-17 17:45:44 +08:00
dapan1121 1128b1222b feat: add memory debug option 2023-02-17 17:40:14 +08:00
Xiaoyu Wang 24157e78d6 merge main 2023-01-28 17:52:58 +08:00
Xiaoyu Wang 0b1bb7a1fb merge 3.0 2023-01-16 17:55:35 +08:00
slzhou 51cdd4af19 fix: add stt_trigger to show create database processing 2023-01-16 10:28:34 +08:00
Xiaoyu Wang b8183580cb feat: add an event_window clause for the explain command 2023-01-11 09:22:31 +08:00
Alex Duan c0a16094ab fix: merge from 3.0 2022-12-30 19:02:48 +08:00
dapan1121 436bc5cbe8 enh: remove asserts 2022-12-30 15:35:03 +08:00
Alex Duan 0c422345b3 feat: support show cluster alive; and show db.alive; 2022-12-29 18:07:57 +08:00