Commit Graph

3795 Commits

Author SHA1 Message Date
Haojun Liao 2ae95217bd fix(stream): open inputQ by default for task deployed on snode. 2023-07-19 10:05:35 +08:00
liuyao 14e591c802 mem leak 2023-07-18 14:51:32 +08:00
liuyao d45adeaa4e add checksum 2023-07-17 18:04:17 +08:00
Haojun Liao b2a905bd91
Merge branch '3.0' into enh/triggerCheckPoint2 2023-07-17 11:50:12 +08:00
liuyao 44be57b3cb add ci 2023-07-14 16:29:37 +08:00
wangjiaming0909 b850c1af47 fix: state/session/event window with order by _wstart/_wend has no effect 2023-07-14 16:03:59 +08:00
dapan1121 1a19d29eee
Merge pull request #22060 from taosdata/fix/TD-25209
fix: reset interpolation buffer after last valid row for interval + fill(next)
2023-07-14 09:30:56 +08:00
dapan1121 9bf7180074
Merge pull request #21969 from taosdata/enh/TD-23769-3.0
enh: rsma stream state adaption
2023-07-13 19:19:37 +08:00
Ganlin Zhao 2edee69b16 add test cases 2023-07-13 18:49:24 +08:00
Haojun Liao e0ea0f2df4
Merge pull request #22020 from taosdata/fix/liaohj
other: merge main
2023-07-13 17:55:28 +08:00
liuyao d8b8112dbe op ci 2023-07-13 17:29:30 +08:00
liuyao b9d274d893 op ci 2023-07-13 17:16:48 +08:00
liuyao d6bb19485a mem leak 2023-07-13 16:53:07 +08:00
liuyao ec2134f758 op ci 2023-07-13 16:24:38 +08:00
Haojun Liao 9484f3da94
Merge branch '3.0' into enh/triggerCheckPoint2 2023-07-12 10:20:18 +08:00
kailixu f282acbc4c chore: rsma refactor 2023-07-12 10:13:50 +08:00
kailixu 8c8bcabdd4 Merge branch '3.0' into enh/TD-23769-3.0 2023-07-12 09:11:34 +08:00
Ganlin Zhao ef242ba8fa fix test cases 2023-07-11 11:11:57 +08:00
Haojun Liao 3ffdbe923d other: merge 3.0 2023-07-11 09:12:57 +08:00
kailixu cb8b10f6a2 Merge branch '3.0' into enh/TD-23769-3.0 2023-07-07 10:19:43 +08:00
wade zhang 4fa61b9eae
Merge pull request #21699 from taosdata/fix/TD-24717
enh(tdb/recycle): first round implemenation of page recycling
2023-07-06 16:03:03 +08:00
liuyao 0e914a19c6 stream operartor checkpoint 2023-07-06 14:28:34 +08:00
kailixu 61380b7822 chore: test case adaption 2023-07-06 11:09:44 +08:00
kailixu 25d9405b05 chore: rsma test case adaption 2023-07-06 10:45:43 +08:00
Minglei Jin 4f29e14963 tsim/sma/drop_sma: sleep 1s before creating db to avoid in dropping 2023-07-06 10:26:26 +08:00
kailixu 3f6768d8cf chore: rsma rocksdb adaption 2023-07-05 19:43:29 +08:00
kailixu df7866e9f6 chore: refactor 2023-07-05 19:08:43 +08:00
kailixu d093b0e20f chore: merge 3.0 2023-07-05 16:45:12 +08:00
kailixu a709f7c0bb chore: update test case 2023-07-03 19:18:06 +08:00
Haojun Liao 200575647c
Merge branch '3.0' into refact/fillhistory 2023-07-03 15:16:18 +08:00
dapan1121 a36dac2008
Merge pull request #21893 from taosdata/fix/TS-3551-M
enh: update of user auth version
2023-07-03 14:58:09 +08:00
kailixu e8ce5a1000 chore: code optimization 2023-07-02 23:03:13 +08:00
kailixu 06c0d99008 chore: add test case 2023-07-02 22:57:10 +08:00
kailixu 067a8334fd chore: code optimization 2023-06-30 16:30:04 +08:00
kailixu 387d611179 chore: passVer and authVer refact 2023-06-30 14:52:20 +08:00
dapan1121 3519e9170e Merge remote-tracking branch 'origin/main' into 3.0 2023-06-29 11:13:45 +08:00
Haojun Liao ed900d6ff6
Merge branch '3.0' into refact/fillhistory 2023-06-28 13:48:26 +08:00
Haojun Liao 57fcd553f8 refactor: do some internal refactor. 2023-06-28 13:13:13 +08:00
wangjiaming0909 57ddb3437d feature: optimize order by limit using priority queue 2023-06-27 17:50:50 +08:00
Haojun Liao 32fddeff18 fix(stream): fix error retrieve data from source task.And optimize the test cases. 2023-06-27 16:24:47 +08:00
Haojun Liao 3289ad62be other: merge 3.0 2023-06-27 11:33:40 +08:00
Haojun Liao b73444b291 fix(stream): start stream task in case of scan history completing. 2023-06-27 09:44:51 +08:00
dapan1121 4dae9f4eff merge main to 3.0 2023-06-26 18:43:00 +08:00
slzhou 6de507d392 fix: modify test case 2023-06-25 11:44:01 +08:00
slzhou 1805d30e10 fix: add test case 2023-06-25 11:36:41 +08:00
Haojun Liao ceb78fdad2
Merge branch '3.0' into refact/fillhistory 2023-06-24 18:53:48 +08:00
liuyao 13d9136ad6 add ci 2023-06-21 11:40:08 +08:00
wangjiaming0909 632fb40a43 postfix: propagate ts order to parents for more logic nodes 2023-06-21 09:31:44 +08:00
dapan1121 1ca24fea6b
Merge pull request #21742 from wangjiaming0909/feature/3.0/TD-24656
feature: add input, output ts order for execution plans
2023-06-18 19:24:29 +08:00
kailixu 4097b860d3 enh: support delete tsma interval 2023-06-16 19:04:12 +08:00
wangjiaming0909 61309862c2 fix comments of TD-24656 2023-06-16 18:12:02 +08:00
chenhaoran bc0dc76e7d test:add test case for windows 2023-06-16 17:35:22 +08:00
Haojun Liao 64365666b7 fix(stream): update the info, and do some internal refactor. 2023-06-16 16:04:43 +08:00
wangjiaming0909 fb4f174fbc feature: add input, output ts order for execution plans 2023-06-16 10:26:09 +08:00
Haojun Liao 1b9eca5ce0 other: merge main. 2023-06-15 13:03:17 +08:00
slzhou a36557f009 fix: calculate the rows that can be put in one page 2023-06-14 13:44:11 +08:00
kailixu 1812b9e968 Merge branch '3.0' into fix/TD-24567-3.0 2023-06-09 09:55:47 +08:00
dapan1121 5a3d3713dc
Merge pull request #21601 from wangjiaming0909/fix/m/TS-3482
fix: select desc and asc return different rows after delete
2023-06-08 15:17:28 +08:00
dapan1121 6c20a331aa
Merge pull request #21547 from taosdata/fix/TD-24507
fix: fix multiple diffs output less lines if null values involved
2023-06-08 10:37:51 +08:00
dapan1121 a4f5bac344
Merge pull request #21606 from taosdata/szhou/fix-ts3498
fix: rewrite count(*) to count(1) for temp table
2023-06-07 15:56:50 +08:00
liuyao 1f64629740 opt stream ci test 2023-06-07 10:26:06 +08:00
liuyao 2ab43ca0d0 semi interval op check data ts 2023-06-07 09:24:17 +08:00
slzhou ca2314efdb fix: add test case 2023-06-07 08:16:49 +08:00
liuyao 49ca147c47 fix stream ci issue 2023-06-06 19:18:43 +08:00
kailixu bcac24b6b7 fix: tsma query with order by _wstart/_wend 2023-06-06 17:19:59 +08:00
liuyao 201d0f2d18 fix stream ci issue 2023-06-06 16:37:08 +08:00
dapan1121 dff35ac584
Merge pull request #21550 from wangjiaming0909/feature/3.0/TD-23974
feature: add user priv when create db, remove priv check with create_dbs
2023-06-06 11:06:18 +08:00
wangjiaming0909 73585b3552 fix: select desc and asc return different rows after delete 2023-06-05 17:44:34 +08:00
Haojun Liao d45aa7ef84
Merge pull request #21555 from taosdata/fix/liaohj_main
other: merge main into 3.0.
2023-06-02 13:11:12 +08:00
Haojun Liao 1036259a7b fix(query): fix error in fill. 2023-06-01 18:25:05 +08:00
Haojun Liao 706e350217 fix(query): fix error in fill and partition. 2023-06-01 14:36:42 +08:00
Haojun Liao 5301c5756a other: merge main into 3.0. 2023-06-01 09:29:18 +08:00
wangjiaming0909 60100a0fb6 feature: add user priv when create db, remove priv check with create_dbs 2023-05-31 18:43:56 +08:00
Ganlin Zhao 1e201da9b7 fix test cases 2023-05-31 16:26:23 +08:00
wangmm0220 e4866d1803 fix:ci test cases error 2023-05-31 10:38:22 +08:00
dapan1121 23bcfc2fd0 enh: stmt column length validation 2023-05-31 09:16:47 +08:00
wangmm0220 fcdf25793b fix:remove useless code 2023-05-30 16:52:53 +08:00
wangmm0220 d490ca753f Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/TD-19042 2023-05-30 09:48:49 +08:00
wade zhang 3b6d196ec3
Merge pull request #21498 from taosdata/fix/check-empty-dnode
check empty dnode
2023-05-29 17:45:56 +08:00
dmchen 23983e506f fix test case 2023-05-29 16:12:26 +08:00
wangmm0220 78db3520a6 fix:conflict 2023-05-29 14:57:03 +08:00
dapan1121 6368b27499 fix: sliding case issue 2023-05-29 08:50:57 +08:00
dapan1121 e2d45438cb
Merge pull request #21405 from taosdata/szhou/scl-flt
enhance: scalar filter improvement
2023-05-28 18:49:39 +08:00
slzhou b83bf9163e fix: restore scalar mode computation and add filterScalarMode config variable and add test case 2023-05-26 14:46:32 +08:00
slzhou 00810d1ffd fix: remove udfpy.sim pycumsum part 2023-05-26 13:10:49 +08:00
Haojun Liao 74f753606b fix(query): add regression test case. 2023-05-26 10:37:36 +08:00
slzhou ab4111b25e enhance: add python udf sample that uses numpy 2023-05-26 08:24:27 +08:00
dapan1121 2713f4f6d4 feat: support create topic as stable with conditions 2023-05-25 19:01:58 +08:00
shenglian zhou 90f542857d enhance: improve document 2023-05-25 11:13:05 +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
wangjiaming0909 9a421a92f9 fix: core dump when select with interval caused by order 2023-05-24 10:32:10 +08:00
kailixu c75aa54a3d fix: tsdb read and append _wstart for tsma 2023-05-22 20:33:29 +08:00
dapan1121 778b7b84fd
Merge pull request #21371 from taosdata/fix/TD-24234
fix: distinct wrong result issue
2023-05-19 18:15:04 +08:00
liuyao e1291bd8b4 opt stream ci test 2023-05-19 13:28:58 +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
dapan1121 27b228b79b
Merge pull request #21365 from taosdata/fix/TD-24188
enh: optimize order by for partition by clause
2023-05-19 08:57:11 +08:00
Hui Li f6c7dbc28e
Merge pull request #21373 from taosdata/fix/TD-24281
test: increase timeouts of checking db ready
2023-05-18 18:54:05 +08:00
chenhaoran 52e85cb85a test: increase timeouts of checking db ready 2023-05-18 18:53:16 +08:00
dapan1121 79623860a4 fix: distinct wrong result issue 2023-05-18 17:41:01 +08:00
slzhou 3e02bb8faa fix: remove files 2023-05-18 16:26:52 +08:00
slzhou 99b424b181 fix: add test case 2023-05-18 16:26:20 +08:00
liuyao da3fc5111e fix pause agg task 2023-05-18 15:29:41 +08:00
dapan1121 72e6319592 enh: optimize order by for partition by clause 2023-05-18 14:41:32 +08:00
dapan1121 5ac91597b6
Merge pull request #21310 from wangjiaming0909/fix/TS-3398
fix: select <expr1>, <expr1##sth else> from ... return error data whe…
2023-05-18 10:07:06 +08:00
Haojun Liao ffee5ebc61 Merge branch '3.0' into feature/3_liaohj 2023-05-17 17:47:44 +08:00
Haojun Liao 041ffa91bd other: merge main. 2023-05-17 15:42:15 +08:00
dmchen 523b86f792 fix test case 2023-05-16 16:13:31 +08:00
wangjiaming0909 789b0c7178 fix: select <expr1>, <expr1##sth else> from ... return error data when strlen(expr1) > TSDB_COL_NAME_LEN 2023-05-16 15:42:30 +08:00
kailixu 9faefb7498 Merge branch 'main' into enh/TD-22404-M 2023-05-16 15:17:42 +08:00
kailixu 24acee6e3f chore: restore the test cases 2023-05-16 14:45:06 +08:00
Haojun Liao 170c603995 other: merge 3.0 2023-05-13 20:16:55 +08:00
Haojun Liao 99148d6719 other: merge 3.0 2023-05-13 20:02:48 +08:00
Haojun Liao 236926b9ee other: merge enh/rocksdbstate 2023-05-13 19:49:28 +08:00
Haojun Liao 1975e94501 Merge branch 'main' into enh/rocksdbSstate 2023-05-13 19:41:03 +08:00
Haojun Liao b383651d8b fix(tmq): fix the invalid write and set the flag when closing taosx sub. 2023-05-13 16:17:26 +08:00
kailixu c1c1e72e21 Merge branch 'main' into enh/TD-22404-M 2023-05-13 14:19:12 +08:00
Haojun Liao 5b2ef2a675 other: merge main and remove invalid return data for poll. 2023-05-13 02:31:39 +08:00
slzhou 51fa0aeb64 Merge branch 'main' of github.com:taosdata/TDengine into szhou/fix-ts3400 2023-05-13 00:02:03 +08:00
slzhou 5b866edae7 fix: disable table count scan optimized when filters and group by both exist 2023-05-12 18:51:18 +08:00
Haojun Liao 181f9063e9 other: merge 3.0 2023-05-12 18:13:28 +08:00
dapan1121 0c744e864b
Merge pull request #21258 from taosdata/szhou/fix-td24084
fix: bypass projection pruning if union set op and subquery
2023-05-12 17:02:54 +08:00
Haojun Liao 99422c87c3 fix(tq): set the offset to be the consume offset, instead of the committed offset. And update the table sim. 2023-05-12 16:14:56 +08:00
Haojun Liao 4b961753a5 test: update the test case. 2023-05-12 15:13:25 +08:00
kailixu 0c9aa5bf3f merge main 2023-05-12 13:55:22 +08:00
kailixu 00f15c19aa merge main 2023-05-12 13:52:47 +08:00
Haojun Liao 7ef16e1922 other: merge main. 2023-05-12 11:49:53 +08:00
kailixu 2e0d463471 fix: update test case alter_column.sim 2023-05-12 09:57:11 +08:00
slzhou d8a7e14065 enhance: add test case 2023-05-12 07:20:27 +08:00
slzhou 00fb5acad7 enhance: add test case 2023-05-12 07:19:03 +08:00
kailixu f4d90fb9bb fix: column length check when update/add column 2023-05-11 20:59:07 +08:00
chenhaoran 57d67faabe test:add testcases of learner in election 2023-05-11 19:05:21 +08:00
yihaoDeng 5708fcb5cb Merge branch 'enh/3.0' into enh/rocksdbSstateMerge 2023-05-10 08:02:16 +00:00
Yihao Deng c6e5879f44
Merge branch 'main' into enh/rocksdbSstate 2023-05-10 10:04:28 +08:00
yihaoDeng 55014aa003 Merge branch 'enh/rocksdbSstate' into enh/rocksdbSstateMerge 2023-05-09 08:58:51 +00:00
shenglian zhou d05650475e enhance: add test case 2023-05-09 14:32:35 +08:00
shenglian zhou 50feb64748 fix: add check nchar/varchar column length for normal table 2023-05-09 14:29:09 +08:00
dapan1121 a1eefd25ea fix: count wrong group number issue 2023-05-09 11:33:47 +08:00
Yihao Deng cb223acf82
Merge branch 'main' into enh/rocksdbSstate 2023-05-08 09:45:27 +08:00
Alex Duan b925342ad0 test: fix tsim/db/error1.sim random failed 2023-05-06 15:08:33 +08:00
Alex Duan fc799bcd19 test: fix tsim/db/error1.sim random failed 2023-05-06 15:06:53 +08:00
kailixu b396cbd33f Merge branch '3.0' into enh/TD-21161-3.0 2023-05-05 20:28:27 +08:00
yihaoDeng 1e09515b98 fix mem leak 2023-05-04 12:10:24 +00:00
Benguang Zhao cfc2b2ecda test: adjust test case split_vgroup_replica1.sim 2023-05-04 19:46:53 +08:00
liuyao d17de8b32b add test case 2023-05-04 14:02:39 +08:00
kailixu 94d945a889 Merge branch 'main' into enh/TD-22404-M 2023-05-02 18:34:41 +08:00
liuyao 2984c5a758 merge main 2023-04-28 10:34:46 +08:00
kailixu fa822ff286 Merge branch '3.0' into enh/TD-21161-3.0 2023-04-27 19:11:16 +08:00
Minglei Jin 3822a5858b sim/valgrind: suppress rocks reachables 2023-04-26 16:03:37 +08:00
dapan1121 919d98d393
Merge pull request #21066 from taosdata/szhou/tag-scan-group-slimit
feature: tag scan group and slimit
2023-04-26 11:17:29 +08:00
Xiaoyu Wang 05dc0fd6b1
Merge pull request #21056 from taosdata/feat/TD-23693
feat: subtable level privilege
2023-04-26 09:17:23 +08:00