Commit Graph

468 Commits

Author SHA1 Message Date
dapan1121 a0699d758c Merge remote-tracking branch 'origin/3.0' into feat/TD-25204 2023-10-13 16:51:38 +08:00
dapan1121 c0a4328803 feat: support view meta updating 2023-10-13 16:29:34 +08:00
Haojun Liao eb4449999f other: merge 3.0 2023-10-12 10:33:48 +08:00
dmchen a4c1611755 TD-26432 2023-09-26 11:06:44 +00:00
kailixu ff3e36e679 enh: timeseries calculation 2023-09-24 08:41:45 +08:00
dm chen ee913cbfbc
Merge branch 'main' into feat/TD-26127-audit-sql 2023-09-19 14:39:20 +08:00
dmchen e36ff1282c revert dependency 2023-09-19 13:42:02 +08:00
yihaoDeng 2c10163634 avoid first tag index conflict 2023-09-18 14:19:58 +08:00
dmchen b473122dac break dependency 2023-09-18 12:29:08 +08:00
dm chen fda32dcc51
Merge branch 'main' into feat/TD-26127-audit-sql 2023-09-18 09:41:47 +08:00
yihaoDeng a66145a494 reduce the possible of first tag index name 2023-09-15 17:41:04 +08:00
dmchen a8e538a563 fix/TD-26210 2023-09-11 14:38:36 +08:00
Shungang Li 46af31539d fix: adjust the error code returned when db does not exist 2023-09-07 14:52:34 +08:00
dmchen 231ba12f70 feat/TD-26127 2023-09-06 11:00:24 +08:00
wade zhang 0517358a02
Merge pull request #22717 from taosdata/fix/TD-22062
fix/TD-22062
2023-09-05 16:04:12 +08:00
dmchen 1a0480c834 fix/TD-22062 2023-09-04 17:14:29 +08:00
Haojun Liao 21dab8ceab other: merge 3.0 2023-09-04 13:08:19 +08:00
dapan1121 cc17848b78 fix: merge 3.0 to main 2023-09-01 13:24:47 +08:00
dmchen 623660d012 enhance 2023-08-30 16:17:13 +08:00
dmchen 04a89b4a49 long fields 2023-08-30 16:03:57 +08:00
dmchen 7790afd85d fields 2023-08-30 13:13:05 +08:00
dmchen b9f77798a2 alter user type to str 2023-08-30 12:06:11 +08:00
dmchen bb33620f5c dbname 2023-08-29 18:12:08 +08:00
dmchen 1372cede48 init 2023-08-28 17:44:10 +08:00
dapan1121 778e50da79
Merge pull request #22592 from taosdata/fix/m23.0
Fix/m23.0
2023-08-28 17:35:35 +08:00
wade zhang 1797fe50e2
Merge pull request #22590 from taosdata/feat/TD-18801
init
2023-08-28 11:05:38 +08:00
dapan1121 0cce255a02 Merge remote-tracking branch 'origin/3.0' into fix/m23.0 2023-08-28 10:06:53 +08:00
Haojun Liao 88f6596965
Merge pull request #22464 from taosdata/feat/TD-18789
feat:support varbinary type
2023-08-28 09:45:57 +08:00
dapan1121 1f40da6fef Merge remote-tracking branch 'origin/main' into 3.0 2023-08-28 09:28:55 +08:00
dmchen 06083e1eb9 init 2023-08-28 09:15:51 +08:00
wangjiaming0909 366a9cc009 Revert "feat: support column comment"
This reverts commit dcbef83dea.
2023-08-24 13:54:27 +08:00
Shungang Li 458fd07976 enh: ttl split flush and drop table
config:
1. ttlFlushThreshold: maximum number of dirty items in memory
2. tsTtlBatchDropNum: number of tables dropped per batch
3. tsTrimVDbIntervalSec: interval of trimming db in all vgroups
2023-08-23 11:13:34 +08:00
dapan1121 9b953707b8 Merge remote-tracking branch 'origin/main' into fix/mainto3.0 2023-08-18 14:42:43 +08:00
wangjiaming0909 4dcdb549c9 fix: get systable cols error 2023-08-18 10:19:12 +08:00
dapan1121 0e10e94a40
Merge pull request #22453 from taosdata/feat/TD-25685
feat: support column comment
2023-08-17 14:23:54 +08:00
kailixu 49efb4ae72 fix: modify column length for super table 2023-08-17 11:43:07 +08:00
wangmm0220 b3f945c4c5 fix:conflict 2023-08-16 19:35:05 +08:00
wangjiaming0909 dcbef83dea feat: support column comment 2023-08-15 16:30:02 +08:00
wangmm0220 7441801e9d feat:support varbinary type 2023-08-15 13:57:05 +08:00
yihaoDeng 9ec64b9201 rebuild index at tag0 2023-08-15 02:01:13 +00:00
yihaoDeng ef7f762c62 rebuild index at tag0 2023-08-15 00:41:48 +00:00
yihaoDeng 1447d1d55c rebuild index at tag0 2023-08-15 00:40:12 +00:00
yihaoDeng 3067417ea3 rebuild index at tag0 2023-08-14 12:01:17 +00:00
yihaoDeng a48d137d32 rebuild index at tag0 2023-08-14 11:56:47 +00:00
yihaoDeng 1d33a8d4c0 rebuild index at tag0 2023-08-14 10:06:33 +00:00
Haojun Liao b145771a1b other: merge 3.0 2023-07-27 16:38:57 +08:00
dapan1121 d81727afa9
Merge pull request #22130 from taosdata/fix/TD-25270
enh: support show create table for system tables
2023-07-21 09:26:11 +08:00
Ganlin Zhao 076a425d53 fix: fix show create table issue for system tables 2023-07-20 17:21:24 +08:00
wangmm0220 6c35081507 fix:add sdbFetchCancel to release hash node 2023-07-18 09:54:35 +08:00
kailixu cf39fcdd12 fix: add sma option when show create table for stb/ntb 2023-07-17 22:24:27 +08:00
wangmm0220 da9e30434a fix:add sdbFetchCancel to release hash node 2023-07-17 20:21:23 +08:00
wangmm0220 8d8e12ee0d fix:add sdbFetchCancel to release hash node 2023-07-17 20:20:34 +08:00
wade zhang 254a20bdf3
Merge pull request #21660 from luckeverda/feat/TD-23739
feat/TD-23739: enhance ttl, deletetime modified by writing-op
2023-06-25 09:06:57 +08:00
Shungang Li b93f653d7e feat: enhance ttl, deletetime modified by writing-ops
new config item: ttlChangeOnWrite (default 0)
ttl delete time changes on last write if true
2023-06-19 19:03:35 +08:00
Haojun Liao 1b9eca5ce0 other: merge main. 2023-06-15 13:03:17 +08:00
Benguang Zhao 3689b41f3a Merge branch '3.0' into FIX/TD-24182-3.0 2023-06-12 09:39:49 +08:00
slzhou 76d341682e fix: select * from information_schema.ins_columns can not complete 2023-06-09 20:55:17 +08:00
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
Benguang Zhao 30104f300c enh: refactor func names of mndTransPerformFinishedStage and mndTrancCheckConflict 2023-05-25 15:44:26 +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