Commit Graph

3539 Commits

Author SHA1 Message Date
Haojun Liao f933aa01cb fix:fix some compiling errors. 2022-04-20 15:20:08 +08:00
Haojun Liao 343988beeb refactor: do some internal refactor. 2022-04-20 14:59:06 +08:00
Haojun Liao 1f92000c48 fix(query): fix invalid write in distinct query. 2022-04-20 14:58:32 +08:00
Shengliang Guan 61334de8b8 fix: refact db options 2022-04-20 14:58:14 +08:00
Ganlin Zhao 08f1980c1e
Merge pull request #11663 from taosdata/fix/TD-14802
fix(query): substr function param overflow
2022-04-20 14:51:53 +08:00
Shengliang Guan 2ae4f5faf6 Merge remote-tracking branch 'origin/3.0' into feature/check 2022-04-20 14:34:44 +08:00
Minghao Li 9cb2192a87 add SyncApplyMsg and test 2022-04-20 14:30:34 +08:00
Ganlin Zhao 0db26f2f96 fix(query): substr function param overflow
TD-14760
2022-04-20 14:30:04 +08:00
Xiaoyu Wang d0b9b90781
Merge pull request #11660 from taosdata/feature/3.0_wxy
feat: sql command 'create table ... rollup ...'
2022-04-20 14:21:50 +08:00
Xiaoyu Wang 5dea946bd4 feat: sql command 'create table ... rollup ...' 2022-04-20 14:05:08 +08:00
Ganlin Zhao c273b2d5ca
Merge pull request #11655 from taosdata/fix/TD-14802
refactor(query): refactor scalar function
2022-04-20 13:00:16 +08:00
Minghao Li 6035f0305d sync integration add SyncApplyMsg 2022-04-20 11:51:00 +08:00
Ganlin Zhao cec0f0d171 refactor(query): refactor scalar function
TD-14802
2022-04-20 10:26:38 +08:00
Shengliang Guan 76883aa42f refactor: check db options 2022-04-20 10:25:03 +08:00
dapan1121 da4379853d stmt 2022-04-20 09:12:59 +08:00
dapan1121 fca15e39b2 Merge remote-tracking branch 'origin/3.0' into feature/qnode5 2022-04-20 09:04:56 +08:00
Shengliang Guan daefe101c1 Merge remote-tracking branch 'origin/3.0' into feature/check 2022-04-20 08:47:36 +08:00
Shengliang Guan 8213315fdd
Merge pull request #11643 from taosdata/feature/3.0_liaohj
fix(query): fix the crash caused by the complex having clause
2022-04-20 00:00:46 +08:00
Shengliang Guan d73010fd32
Merge pull request #11638 from taosdata/feature/retry
enh(rpc): add rpc retry
2022-04-20 00:00:30 +08:00
Shengliang Guan 040b7f11da
Merge pull request #11632 from taosdata/fix/valgrind
fix: fix memory leak in client
2022-04-19 23:59:47 +08:00
yihaoDeng f0c0bc923c enh(rpc): fix mem leak 2022-04-19 23:57:07 +08:00
Shengliang Guan b66718a4d8 feat: report service status 2022-04-19 21:39:42 +08:00
Ganlin Zhao 8649bbca02
Merge pull request #11642 from taosdata/fix/TD-14843
refactor(query): refactor cast function
2022-04-19 21:03:06 +08:00
Ganlin Zhao a8ea6063d5
Merge pull request #11646 from taosdata/fix/TD-14905
fix(query): fix timezone function with trailing characters
2022-04-19 20:41:44 +08:00
Ganlin Zhao f53db3d3b9 fix(query): fix cast function NULL value handling logic 2022-04-19 20:40:45 +08:00
wangmm0220 2133a2de1d refactor: add test casese for json compare logic 2022-04-19 20:30:06 +08:00
dapan1121 0f13cee876 stmt 2022-04-19 20:16:17 +08:00
Ganlin Zhao 43aecff7ea fix(query): fix timezone function with trailing characters 2022-04-19 20:15:29 +08:00
Haojun Liao 6956c46226 Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-19 19:46:23 +08:00
Ganlin Zhao 6d8c06efd5 fix(query): fix timezone function with trailing characters 2022-04-19 19:16:15 +08:00
Haojun Liao f25a72e5c3 fix(query): fix the crash caused by the complex having clause in which an scalar function is nested with an aggregate function in group by query. 2022-04-19 18:45:28 +08:00
Ganlin Zhao f9947be46f refactor(query): refactor cast function
TD-14837
TD-14843
TD-14904
2022-04-19 18:22:59 +08:00
Ganlin Zhao 482afcf288 refactor(query): refactor cast function
TD-14837
TD-14843
TD-14904
2022-04-19 18:20:27 +08:00
Ganlin Zhao 11028921b6 refactor(query): refactor cast function
TD-14837
TD-14843
TD-14904
2022-04-19 18:16:29 +08:00
Haojun Liao b122538268 refactor: do some internal refactor. 2022-04-19 18:06:59 +08:00
wangmm0220 412e2cbb0d refactor: add test casese for json compare logic 2022-04-19 17:52:04 +08:00
shenglian-zhou b62b17865a
Merge pull request #11572 from taosdata/3.0_udfd
feat(udf): UDF service refactoring with new interface
2022-04-19 17:29:57 +08:00
yihaoDeng 5f24bf5bf9 enh(rpc): add rpc retry 2022-04-19 17:29:04 +08:00
Haojun Liao e5bf165e24
Merge pull request #11637 from taosdata/feature/3.0_liaohj
feat(query): a new builtin aggregate function is added.
2022-04-19 17:25:58 +08:00
Hongze Cheng eeb45f210a Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/sync-vnode-merge-3.0 2022-04-19 09:03:39 +00:00
slzhou 0776427f45 runUdf passed 2022-04-19 16:51:02 +08:00
Haojun Liao 7f0077cad5 feat(query): a new builtin aggregate function is added. 2022-04-19 16:32:19 +08:00
Haojun Liao 29608b0866
Merge pull request #11610 from taosdata/feature/3.0_liaohj
fix(query): avoid the output result overlap within the project operator buffer.
2022-04-19 16:27:28 +08:00
Haojun Liao 1c94bbb5e4 enh(query): set the status of stream scan operator. 2022-04-19 16:11:16 +08:00
Xiaoyu Wang 7d4cc302b6
Merge pull request #11634 from taosdata/feature/3.0_wxy
feat: delimit the time range according to the filtering conditions
2022-04-19 16:07:19 +08:00
Ganlin Zhao 4407a49c81
Merge pull request #11630 from taosdata/hotfix/glzhao_3.0
refactor(query): refactor string functions
2022-04-19 15:57:12 +08:00
Xiaoyu Wang 556f6a96ea feat: delimit the time range according to the filtering conditions 2022-04-19 15:46:11 +08:00
Minghao Li 9a7924049f sync integration 2022-04-19 15:43:24 +08:00
Cary Xu dc11ea8384
Merge pull request #11631 from taosdata/feature/TD-14481-3.0
feat: trow refactor
2022-04-19 14:30:04 +08:00
dapan1121 b7281e4d72 Merge remote-tracking branch 'origin/3.0' into fix/valgrind 2022-04-19 14:19:31 +08:00
dapan1121 25a4645f08 fix mem leak 2022-04-19 14:18:58 +08:00
Cary Xu 8959e4437b trow refactor 2022-04-19 14:13:34 +08:00
Haojun Liao 2288d35194 Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-19 13:48:22 +08:00
Haojun Liao 0787021ca0 fix(query): check the primary timestamp null case and report error with inforamtion to caller. 2022-04-19 13:47:40 +08:00
Xiaoyu Wang d4829dcd9a
Merge pull request #11629 from taosdata/feature/3.0_wxy
fix: some syntax parsing problems
2022-04-19 13:43:29 +08:00
Ganlin Zhao 114423f55b Merge branch '3.0' into hotfix/glzhao_3.0 2022-04-19 13:27:22 +08:00
Xiaoyu Wang 2d7cf35fb0 fix: some syntax parsing problems 2022-04-19 13:25:19 +08:00
Ganlin Zhao a70181194b refactor(query): refactor string functions
TD-14836
TD-14833
2022-04-19 13:15:55 +08:00
Haojun Liao a036d2f3ff fix(query): fix the bug caused by refactor in first/last function implementation. 2022-04-19 13:07:23 +08:00
slzhou f839f1def6 Merge remote-tracking branch 'origin/3.0' into 3.0_udfd_sub1 2022-04-19 12:01:10 +08:00
slzhou 71983725c3 befor debugging teardown 2022-04-19 12:00:59 +08:00
Minghao Li 01008939f2 sync snapshot 2022-04-19 11:51:51 +08:00
Shengliang Guan 7273581072
Merge pull request #11618 from taosdata/fix/valgrind
fix: memory leak when sending and receiving messages
2022-04-19 10:35:32 +08:00
Hongze Cheng 3a50257aa3 refact 2022-04-19 02:18:11 +00:00
Haojun Liao 5b835514ee Merge branch '3.0' into feature/3.0_liaohj 2022-04-19 10:15:48 +08:00
Haojun Liao 2305b05869 refactor(query): do some internal refactor for executor. 2022-04-19 10:12:30 +08:00
wangmm0220 b96082fe1b refactor: fix compare logic 2022-04-19 09:46:12 +08:00
Hongze Cheng 0b71a2866e
Merge pull request #11615 from taosdata/feature/vnode_refact1
refact vnode
2022-04-19 09:15:51 +08:00
shenglian zhou eae11bf8f0 handle uv read error 2022-04-19 09:03:04 +08:00
yihaoDeng ed41011863 fix mem leak 2022-04-18 23:20:45 +08:00
yihaoDeng dcf06061cd fix mem leak 2022-04-18 23:19:26 +08:00
Minghao Li 7066274cc7 add sync format code 2022-04-18 21:50:56 +08:00
yihaoDeng 8684ea997a Merge branch 'fix/valgrind' of https://github.com/taosdata/TDengine into valg 2022-04-18 21:36:23 +08:00
yihaoDeng c15ec36513 fix(rpc): avoid partial memleak 2022-04-18 21:33:59 +08:00
Hongze Cheng 9329f5f058 refact vnode 2022-04-18 13:23:22 +00:00
wangmm0220 49c3057221 refactor: merge from 3.0 2022-04-18 21:15:57 +08:00
wangmm0220 ad29963423 refactor: modify json compare in where condition 2022-04-18 21:00:35 +08:00
Xiaoyu Wang 40d9a95c12
Merge pull request #11609 from taosdata/feature/3.0_wxy
feat: implementation of parser and planner for stmt API
2022-04-18 20:52:09 +08:00
Xiaoyu Wang ff80459821 feat: implementation of parser and planner for stmt API 2022-04-18 20:19:24 +08:00
Haojun Liao 9d1a9d9510 fix(query): avoid the output result overlap within the project operator buffer. 2022-04-18 19:27:41 +08:00
Ganlin Zhao 00ae854c78
fix(query): fix time function related bugs (#11604)
* fix(query): fix timediff args cannot be integer values

TD-14798

* fix(query): fix timediff/timetruncate/to_unixtimestamp handling NULL value and empty string

TD-14802
TD-14803

* refactor(query): constant NULL value processing logic

TD-14802
TD-14803

* refactor(query): support timefunction arithmetic operation with boolean
constant
2022-04-18 19:20:08 +08:00
dapan1121 0c2f22fb82 stmt 2022-04-18 19:08:27 +08:00
Haojun Liao 9864e367bb refactor(query): do some internal refactor in executor. 2022-04-18 18:47:59 +08:00
Ganlin Zhao 1c0211880f refactor(query): support timefunction arithmetic operation with boolean
constant
2022-04-18 18:47:30 +08:00
Ganlin Zhao 315a6c0364 refactor(query): constant NULL value processing logic
TD-14802
TD-14803
2022-04-18 17:36:48 +08:00
Haojun Liao dc76f2e91a refactor: refactor hash module to invoke the freeFp when destroying the hash node. 2022-04-18 17:32:50 +08:00
Ganlin Zhao f3b8bc8152 fix(query): fix timediff/timetruncate/to_unixtimestamp handling NULL value and empty string
TD-14802
TD-14803
2022-04-18 16:01:21 +08:00
wangmm0220 24f805c5c2 refactor: add to_json function 2022-04-18 15:54:40 +08:00
Haojun Liao df8354affb
Merge pull request #11590 from taosdata/feature/3.0_liaohj
enh(query): set the parameters for system database to be NULL
2022-04-18 15:14:15 +08:00
Haojun Liao b0519b5707
Merge pull request #11568 from taosdata/hotfix/glzhao_3.0
fix(query): translate var type from value node to SVariant should include var header
2022-04-18 14:56:53 +08:00
Ganlin Zhao d57da814cc fix(query): fix timediff args cannot be integer values
TD-14798
2022-04-18 14:35:45 +08:00
Haojun Liao ea8832baa5 Merge branch 'fix/valgrind' into feature/3.0_liaohj 2022-04-18 14:30:10 +08:00
wangmm0220 d2d29d992f refactor: add compare logic for json value 2022-04-18 14:25:19 +08:00
wangmm0220 e2c6bf41df refactor: add compare logic for json value 2022-04-18 13:36:01 +08:00
dapan1121 49e0ecdb9b Merge remote-tracking branch 'origin/3.0' into feature/qnode4 2022-04-18 13:34:04 +08:00
dapan1121 0270499496 Merge remote-tracking branch 'origin/3.0' into feature/qnode4 2022-04-18 13:25:45 +08:00
Haojun Liao 7d8e418de2
Merge pull request #11581 from taosdata/feature/3.0_liaohj
fix(query): fix bug in calculating the aggregate function
2022-04-18 12:23:19 +08:00
Haojun Liao 781fbce942 fix(query): fix bug caused by new completed query function. 2022-04-18 12:07:04 +08:00
Ganlin Zhao 53aedbb163 Merge branch '3.0' into hotfix/glzhao_3.0 2022-04-18 11:39:18 +08:00
Ganlin Zhao 6105dfc934 refactor(query): refactor concat/concat_ws and param check 2022-04-18 11:39:08 +08:00
dapan1121 9de53b0019 fix valgrind memleak 2022-04-18 11:25:39 +08:00
Haojun Liao e91233f5eb fix(query): set the correct flag to denote the initialization status. 2022-04-18 11:01:07 +08:00
Haojun Liao 7429f37c0c fix(query): fix bug in calculating the aggregate function with constant numeric value as input parameter. 2022-04-18 10:46:07 +08:00
dapan1121 c8fe5bc88b stmt 2022-04-18 10:19:15 +08:00
Zhiqiang Wang d8feae98b2
Merge pull request #11571 from taosdata/fix/ZhiqiangWang/TD-13877-fix-use-static-taos-lib
fix(build): use static taos lib.
2022-04-17 20:20:01 +08:00
shenglian zhou d9580cff53 runudf call scalar 2022-04-17 17:37:07 +08:00
slzhou 18943125f4 call udf for scalar and aggregate 2022-04-17 15:07:11 +08:00
Yihao Deng 487d45c0de
Merge pull request #11561 from taosdata/feature/tag_filter_oper
enh: add tag index filter impl
2022-04-17 14:16:34 +08:00
shenglian zhou 4817f54ae9 SSDataBlock and SUdfInterBuf message passing between taosd/udfd 2022-04-16 23:34:40 +08:00
Haojun Liao f0463a6a58 test: temporarily disable some invalid cases. 2022-04-16 22:50:08 +08:00
wangmm0220 b7bd654c77 refactor: add compare logic for json value 2022-04-16 21:24:07 +08:00
afwerar dea51ba364 fix(build): use static taos lib. 2022-04-16 20:46:51 +08:00
yihaoDeng 25837faf28 enh: add multi filter merge 2022-04-16 20:35:18 +08:00
dapan1121 93ca1168f3 stmt 2022-04-16 19:41:18 +08:00
Ganlin Zhao 03a9679f97 fix(query): translate var type from value node to SVariant should include var header 2022-04-16 19:40:50 +08:00
Haojun Liao 902fcb0c0b refactor(query): refactor code. 2022-04-16 19:10:21 +08:00
Haojun Liao 30602b8cfb Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-16 19:02:08 +08:00
wade zhang 3f0f31c4c2
Merge pull request #11552 from taosdata/feature/TD-14243
feat(query): support timezone function and now/today function arithmetic operation in select clause
2022-04-16 18:54:18 +08:00
Ganlin Zhao b42d28f6d1 Merge branch '3.0' into feature/TD-14243 2022-04-16 18:27:25 +08:00
yihaoDeng fe367b5ef4 enh: add tag index filter impl 2022-04-16 17:56:06 +08:00
dapan1121 1c499c94a7 stmt 2022-04-16 17:47:42 +08:00
Xiaoyu Wang 7a5148973c enh: window clause validity check 2022-04-16 17:46:32 +08:00
Xiaoyu Wang c40b590ad8 enh: window clause validity check 2022-04-16 17:27:54 +08:00
shenglian zhou 964d944ae2 Merge branch '3.0' into 3.0_udfd 2022-04-16 17:02:09 +08:00
yihaoDeng 9fae339710 enh: add tag index filter impl 2022-04-16 16:35:24 +08:00
Haojun Liao d40f830b77 enh(query): optimize the data block load algorithm in table scan operator. 2022-04-16 16:06:48 +08:00
dapan1121 9547c0a09b stmt 2022-04-16 15:59:19 +08:00
Haojun Liao be4d72bf80 refactor(query): refactor executor module to optimization the block load filter routine. 2022-04-16 15:15:28 +08:00
slzhou 4e6caa3495 before using ssdatablock for udfd/udfdc communication 2022-04-16 14:19:33 +08:00
Haojun Liao 609826949a Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-16 13:59:54 +08:00
Xiaoyu Wang 61a6bee8f5
Merge pull request #11554 from taosdata/feature/3.0_wxy
feat: sql command "create stream"
2022-04-16 13:36:48 +08:00
Xiaoyu Wang b9fb9c580d feat: sql command "create stream" 2022-04-16 13:15:14 +08:00
Ganlin Zhao ad7323166a Merge branch '3.0' into feature/TD-14243 2022-04-16 12:51:49 +08:00
Haojun Liao 34c125e1bb fix(query): fix bug in employing sma data during aggregate process. 2022-04-16 11:47:50 +08:00
Cary Xu 77dc7a1abb
Merge pull request #11550 from taosdata/feature/TD-11463-3.0
feat: Rollup SMA integration
2022-04-16 11:09:08 +08:00
Ganlin Zhao 29327a6d66 feat(query): support now()/today() arithmetic operation with time duration
TD-14243
2022-04-16 11:03:18 +08:00
Cary Xu d4f7c43bbf code optimization 2022-04-16 10:53:23 +08:00
Xiaoyu Wang 43f500ba4d
Merge pull request #11549 from taosdata/feature/3.0_wxy
enh: set appropriate block loading options for some queries
2022-04-16 10:30:56 +08:00
Haojun Liao fd9e520865 other: merge 3.0 branch to resolve conflict. 2022-04-16 10:07:28 +08:00
Haojun Liao 53ff8c113e fix(query): add a little bit more check when build SqlFunctionCtx. 2022-04-16 10:04:33 +08:00
Haojun Liao 597cba3aff fix(query): enable to employ the scalar function as the parameter of the aggregate function. 2022-04-16 10:00:25 +08:00
Xiaoyu Wang f13f952bbf enh: set appropriate block loading options for some queries 2022-04-16 09:50:32 +08:00
wangmm0220 73c34da280 Merge branch '3.0' into feature/TD-13041 2022-04-16 09:30:26 +08:00
Haojun Liao e6a4af8ed8 refactor(query): refactor the executor module of query. 2022-04-15 23:02:26 +08:00
yihaoDeng acc12943b8 validate tag filter status 2022-04-15 22:17:22 +08:00
Yihao Deng 4b729ada42
Merge branch '3.0' into feature/tag_filter_oper 2022-04-15 21:42:46 +08:00
yihaoDeng a172f11e24 add tag index filter 2022-04-15 21:38:56 +08:00
Xiaoyu Wang f406c4e31d complie error 2022-04-15 20:31:21 +08:00
Xiaoyu Wang acb4a04459 complie error 2022-04-15 20:17:56 +08:00
dapan1121 e3ea173046 stmt 2022-04-15 20:10:51 +08:00