Commit Graph

275 Commits

Author SHA1 Message Date
Haojun Liao 300f35188e fix(query): prepare the SColumnInfoData. 2022-06-22 21:18:11 +08:00
Haojun Liao ecc05bf75c fix(query): check pointer before use it. 2022-06-22 21:12:08 +08:00
Haojun Liao 02a53ee81f fix(query): set correct memory buffer size. 2022-06-22 21:03:59 +08:00
Haojun Liao 324eecdd99 fix(query): prepare the buffer before assigning result. 2022-06-22 20:24:26 +08:00
Haojun Liao 72a942b09e refactor(query): do internal refactor. 2022-06-22 19:44:14 +08:00
Haojun Liao b097e78708 fix(query): clear buffer before set data. 2022-06-22 19:40:59 +08:00
Haojun Liao c79eda9f70 fix(query): prepare the buffer before serialize the retrieved data. 2022-06-22 19:34:56 +08:00
Haojun Liao 14ddf539e0 refactor(query): do some internal refactor. 2022-06-22 17:21:04 +08:00
WANG MINGMING 15eb9c485e
Merge pull request #14069 from taosdata/3.0
feat:merge from 3.0
2022-06-22 16:33:15 +08:00
wangmm0220 db34294bed opt: filter by tag 2022-06-22 16:32:10 +08:00
Haojun Liao 1568722e8e fix(query): reserve correct buffer size before retrieve datablock from vnode. 2022-06-22 09:31:45 +08:00
Liu Jicong 342a1ae42d fix(stream): build ctb name 2022-06-17 21:00:10 +08:00
Cary Xu 111c3451f8
Merge pull request #13893 from taosdata/feature/TD-14481-3.0
fix: not submit for stables without rollup in rsma database
2022-06-16 18:14:05 +08:00
Cary Xu dbef3dfc55 fix: not submit for rsma without rollup 2022-06-16 15:34:33 +08:00
Haojun Liao 63884b554b fix(query): set correct sort buffer page size. 2022-06-16 10:51:29 +08:00
Liu Jicong 04593fa44e fix(stream): build table name 2022-06-14 16:38:33 +08:00
Liu Jicong 5881ef2690 refactor: convert datablock to submit block 2022-06-14 15:08:37 +08:00
Liu Jicong 601e454a24 enh(tmq): put offset store into vnode 2022-06-14 13:58:40 +08:00
Cary Xu f0652ba4ff
Merge pull request #13719 from taosdata/feature/TD-14481-3.0
refactor: tsma
2022-06-11 16:07:17 +08:00
Cary Xu 25911e12a4 Merge branch '3.0' into feature/TD-14481-3.0 2022-06-11 15:16:20 +08:00
Haojun Liao a91053300c other: merge 3.0 2022-06-11 14:54:31 +08:00
Haojun Liao 9f4e89a7e2 Merge remote-tracking branch 'origin/feature/3_liaohj' into feature/3_liaohj 2022-06-11 14:52:33 +08:00
Haojun Liao 0fbf30ce6d refactor: do some internal refactor, and add some check before create exchange operator. 2022-06-11 14:51:54 +08:00
Haojun Liao a80529e810
Merge pull request #13688 from taosdata/feature/3_liaohj
fix(query): fix invalid write.
2022-06-11 14:50:35 +08:00
Haojun Liao 94c8ca1e06 fix(query): add null pointer check. 2022-06-11 14:10:00 +08:00
Haojun Liao 80b7ba902c fix(query): add null pointer check. 2022-06-11 13:48:18 +08:00
Haojun Liao f30ae95b9d fix(query): add null pointer check. 2022-06-11 11:36:13 +08:00
Haojun Liao 79552ed65d fix(query): add null pointer check. 2022-06-11 11:35:42 +08:00
Haojun Liao afe612e369 refactor: remove unnecessary check. 2022-06-11 00:51:59 +08:00
54liuyao c790ac64d6 feat(stream): distribute stream interval 2022-06-10 15:54:20 +08:00
Cary Xu 2160a112f5 other: merge 3.0 2022-06-10 09:59:47 +08:00
Liu Jicong a2145321b5
Merge pull request #13663 from taosdata/feature/stream
feat(wal): support restore from snapshot
2022-06-10 00:04:13 +08:00
Liu Jicong 7ab3a1e42c feat(wal): support restore from snapshot 2022-06-09 23:08:06 +08:00
Cary Xu fff84f1cb4 other: merge 3.0 2022-06-09 20:08:50 +08:00
Liu Jicong 7ed9da56e3
Merge pull request #13653 from taosdata/feature/stream
feat(stream): sink table can be other db
2022-06-09 19:12:35 +08:00
Liu Jicong b23fa19bc4 feat(stream): sink table can be other db 2022-06-09 16:50:11 +08:00
Cary Xu 69e7c77f4a Merge branch '3.0' into feature/TD-14481-3.0 2022-06-09 15:15:22 +08:00
Liu Jicong 88313b9068
Merge pull request #13619 from taosdata/feature/stream
fix(query): decode
2022-06-09 13:03:35 +08:00
Cary Xu ffe4d7cc62 other: merge 3.0 2022-06-09 11:55:11 +08:00
shenglian-zhou 0b549e9de8
Merge pull request #13629 from taosdata/szhou/feature/multiwaymerge
fix: add group id to sort operator
2022-06-09 10:46:04 +08:00
Haojun Liao c7bbd9354b fix(query): set correct column number value for ssdatablock. 2022-06-09 10:17:43 +08:00
Haojun Liao 30b54fcfb5 refactor: do some internal refactor. 2022-06-09 09:36:50 +08:00
shenglian zhou 9afcca0355 fix: add group id to create initial source 2022-06-09 09:36:14 +08:00
Liu Jicong 9c127e3e69 fix(query): decode 2022-06-08 22:00:57 +08:00
Liu Jicong 6733636a1a
Merge pull request #13601 from taosdata/feature/retrievemsg
refactor: do some internal refactor.
2022-06-08 21:27:16 +08:00
Haojun Liao 716dd2c5e4 refactor: do some internal refactor, add the column info in STableRetrieveRsp. 2022-06-08 18:41:05 +08:00
Yihao Deng 0d665b57d2
Merge pull request #13605 from taosdata/enh/jsonIdx1
Enh/json idx1
2022-06-08 17:21:14 +08:00
yihaoDeng 6b39c690d2 json idx 2022-06-08 16:13:52 +08:00
Haojun Liao 9bee5e2cee refactor: do some internal refactor. 2022-06-08 16:08:26 +08:00
Cary Xu b5cf60170c Merge branch '3.0' into feature/TD-14481-3.0 2022-06-08 15:33:20 +08:00
shenglian-zhou 58161110e7
Merge pull request #13570 from taosdata/szhou/feature/multiwaymerge
feat: support multi-way sort merge
2022-06-08 15:32:39 +08:00
WANG MINGMING 098be04ab6
Merge pull request #13597 from taosdata/feature/TD-13041
fix:return false in is ture operator if result is null
2022-06-08 14:46:58 +08:00
wangmm0220 8e4690455d fix:return false in is ture operator if result is null 2022-06-08 14:06:42 +08:00
shenglian zhou 3a9b5cc6f4 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/feature/multiwaymerge 2022-06-08 13:43:56 +08:00
54liuyao 262a221c12 distributed interval 2022-06-08 09:33:11 +08:00
Cary Xu d4c33fba2f feat: create tsma result stable 2022-06-07 20:49:27 +08:00
shenglian zhou a0d96f9b98 Merge branch '3.0' of github.com:taosdata/TDengine into szhou/feature/multiwaymerge 2022-06-07 17:41:27 +08:00
shenglian zhou eb6250de4f feat: support multiway sort merge 2022-06-07 17:41:11 +08:00
wangmm0220 652035d8b2 Merge branch 'fix/jsonIdx' of github.com:taosdata/TDengine into fix/jsonIdx 2022-06-07 16:29:30 +08:00
wangmm0220 7ab66e5b6b fix:memory leak in doFilter 2022-06-07 16:29:00 +08:00
Liu Jicong 65900c32c3 enh(stream): use same name rule with schemaless 2022-06-07 15:40:11 +08:00
Liu Jicong 34a46348c3 merge from 3.0 2022-06-07 11:38:37 +08:00
Liu Jicong 1a84d07188 fix(stream): msg deserialize 2022-06-07 11:36:40 +08:00
Cary Xu ea8239c8e5 fix: fix type convert of sum/avg for rsma 2022-06-06 16:40:37 +08:00
wangmm0220 3aab380045 feat: merge from 3.0 2022-06-05 22:34:12 +08:00
Cary Xu 1c46958cb4 enh: check max/sum/avg func for rsma 2022-06-05 19:55:06 +08:00
wangmm0220 020372cc75 feat: add sort/group logic for json 2022-06-05 18:26:16 +08:00
wangmm0220 a2ebeda89c feat: add sort/group logic for json 2022-06-04 19:28:30 +08:00
Liu Jicong 77fe6a4ef7
Merge branch '3.0' into feature/3_liaohj 2022-06-02 15:05:49 +08:00
wangmm0220 19b0932781 feat:merge from 3.0 2022-05-31 23:46:04 +08:00
wangmm0220 816cea07f9 feat:add new logic for new tag format 2022-05-31 17:49:33 +08:00
Haojun Liao d358212a14 fix(query): move the bitmap when drop first rows. 2022-05-31 17:02:44 +08:00
Cary Xu 890075ef4a fix: init buf to avoid invalid write 2022-05-29 00:59:23 +08:00
Haojun Liao 067e29f728
Merge pull request #13169 from taosdata/feature/3_liaohj
fix(query): set correct start offset of binary data when trimming values.
2022-05-28 22:32:09 +08:00
Haojun Liao 041cb3f055 fix(query): set correct start offset of binary data when trimming first value. 2022-05-28 20:10:18 +08:00
Yihao Deng 7710766583
Merge branch '3.0' into enh/tagFlt 2022-05-28 18:40:54 +08:00
Cary Xu 292d579932 feat: adapt for interface 2022-05-28 18:05:50 +08:00
Cary Xu 9b4c9e4802 enh: tag refactor for normal tags 2022-05-28 17:16:04 +08:00
yihaoDeng 6acbe7e777 enh: support tag filter 2022-05-28 16:15:24 +08:00
Cary Xu 45b88c1a2d feat: build submit blk by groupid in rsma result 2022-05-27 20:21:41 +08:00
Haojun Liao 2ced335b04 fix(query): set the proper buffer page size. 2022-05-26 17:48:07 +08:00
Liu Jicong a0f3138888 fix(stream): tb name error 2022-05-26 11:16:35 +08:00
Xiaoyu Wang 0de64aa805 feat: sql command 'drop cgroup' 2022-05-25 22:33:41 +08:00
Xiaoyu Wang 6d3f066540 feat: sql command 'drop cgroup' 2022-05-25 21:23:13 +08:00
Xiaoyu Wang 070f60409b feat: sql command 'drop cgroup' 2022-05-25 21:20:11 +08:00
Liu Jicong 86c9446a84 fix(stream): handle null data 2022-05-25 19:37:52 +08:00
Haojun Liao 84f6898fcd enh(query): add detailed sort exec information in analysis of operator. 2022-05-25 15:22:34 +08:00
Cary Xu d6bd729888 fix: use real schema version 2022-05-23 16:30:26 +08:00
Haojun Liao a7feca23fe other: merge 3.0 2022-05-30 23:32:00 +08:00
Haojun Liao bb2146cd75 refactor(query): do some internal refactor. 2022-05-30 22:35:01 +08:00
Haojun Liao 70927458e5 refactor(query): do some internal refactor. 2022-05-30 20:10:30 +08:00
Haojun Liao 00821527be fix(query): specify the primary timestamp column in ssdatablock when update the time range of ssdatablock. 2022-05-21 11:02:53 +08:00
wangmm0220 91dc9e9089 fea:add select json logic 2022-05-19 17:46:28 +08:00
wangmm0220 e818e27902 fea:add select json logic 2022-05-18 22:13:38 +08:00
Haojun Liao 5c2c2b378b fix(query): fix the invalid column length value during spill out the group data into disk. 2022-05-18 10:15:29 +08:00
54liuyao 42f27e99d0 steam reprocess window 2022-05-12 22:15:13 +08:00
slzhou@taodata.com d7bd682237 column has member hasNull 2022-05-12 14:42:57 +08:00
shenglian zhou 2ba5fdc36f fix: block extraction null set error 2022-05-10 11:22:31 +08:00
Liu Jicong d17b478e96 feat(stream): auto create ctb 2022-05-08 02:37:23 +08:00
Liu Jicong 3ed1ab6acb enh(stream): auto create ctb 2022-05-07 23:19:05 +08:00
Liu Jicong 3ae79a77c7 enh(stream): fix create stb in stream 2022-05-07 01:47:45 +08:00
Haojun Liao 8ffdd1b715 other: merged with 3.0 branch. 2022-05-06 17:26:52 +08:00
Haojun Liao 4e90982c22 fix(query): sort according to the generated column data in order by operator. 2022-05-06 17:23:20 +08:00
shenglian zhou 8e0eda6c0c Merge branch '3.0' of github.com:taosdata/TDengine into feature/udf 2022-05-05 19:52:07 +08:00
shenglian zhou a0c92acd56 deal with not all columns has agg 2022-05-05 19:50:49 +08:00
Liu Jicong 6258e5b534 merge from 3.0 2022-05-05 19:04:14 +08:00
Liu Jicong a5706ea7e5 feat(stream): insert data 2022-05-05 18:57:09 +08:00
Cary Xu 5b71178844 feat: rollup data storage 2022-05-02 09:37:24 +08:00
Cary Xu c7ca57f557 feat: rollup data submit 2022-05-02 00:30:47 +08:00
Haojun Liao c52ca4cce8 refactor: do some internal refactor. 2022-04-30 15:45:10 +08:00
Haojun Liao 2bbeeb5c5b refactor: do some internal refactor. 2022-04-30 15:44:06 +08:00
Haojun Liao 912e0df6bb fix(query): set the correct memory buffer size when merging two column data. 2022-04-30 15:31:43 +08:00
Haojun Liao 498cbc62fc fix(query): update the capacity for ssdatablock when merge new blocks. 2022-04-30 15:13:18 +08:00
Haojun Liao c71c88a719 enh(query): enable check sma status for each column in query. 2022-04-29 20:07:33 +08:00
Haojun Liao 878bb18d08 fix(query): the null value is missing when merging two SColumnInfoData. 2022-04-27 19:59:50 +08:00
Haojun Liao 02cee2ba62 refactor: do some internal refactor. 2022-04-27 10:11:32 +08:00
Haojun Liao 0f4da0ef57 fix(query): copy the hasNull attribute to destination SColumnInfoData. 2022-04-26 17:34:00 +08:00
Haojun Liao 0debaf1e41 fix(query): recalculate the length of all null constant column. 2022-04-26 15:05:03 +08:00
Haojun Liao 1d681a9e4b enh(query): Add the group id in the serialized block format to support the multi-table(super table) interval query. 2022-04-24 20:48:42 +08:00
Haojun Liao d28afa2bd9 refactor: do some internal refactor. 2022-04-22 15:26:02 +08:00
wangmm0220 0fb41733ea refactor: merge from 3.0 2022-04-20 17:08:52 +08:00
wangmm0220 2133a2de1d refactor: add test casese for json compare logic 2022-04-19 20:30:06 +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
Haojun Liao 5b835514ee Merge branch '3.0' into feature/3.0_liaohj 2022-04-19 10:15:48 +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
Haojun Liao 79596698ab other: resolve conflict with 3.0 branch. 2022-04-14 16:51:46 +08:00
Haojun Liao 928a977354 ehn(query): enhance the api of ssdatablock to support copy data while clone a new ssdatablock. 2022-04-14 15:33:37 +08:00
Ganlin Zhao b355e2b3c8 feat(query): add today()/today() + duration in insert clause
TD-14243
2022-04-14 12:53:59 +08:00
Haojun Liao 20b36401ac fix[query]:fix limit/offset bug. 2022-04-09 19:03:31 +08:00
Haojun Liao 6af7e1810f Merge remote-tracking branch 'origin/3.0' into feature/3.0_liaohj 2022-04-09 11:56:45 +08:00
Haojun Liao 2523445452 <fix>[query]: refactor. 2022-04-09 11:55:59 +08:00
WANG MINGMING 41392e9e4a
Merge branch '3.0' into feature/TD-14422 2022-04-09 10:18:52 +08:00
Haojun Liao fce5d48835 <fix>[query]: reset the null value bitmap before fetch next data block from tsdb. TD-14581. 2022-04-08 20:04:17 +08:00
wangmm0220 460d43f22c <fix>: fix index map error from table scan to sort output 2022-04-08 16:53:09 +08:00
Haojun Liao e77ecba753 [td-14493] fix bug in partition by. 2022-04-08 15:31:03 +08:00
wangmm0220 1f8d2ea446 <fix>: fix index map error from table scan to sort output 2022-04-08 14:17:32 +08:00
Haojun Liao b984e12e4c [td-14493] support partition by 2022-04-08 10:24:35 +08:00
wangmm0220 bb18e3c485 fix error in sort logic 2022-04-07 17:50:06 +08:00
wangmm0220 f72c983792 modify test case 2022-04-06 16:56:13 +08:00
wangmm0220 865a13c1c2 fix error in sort logic 2022-04-06 16:46:26 +08:00
wangmm0220 78acaed84e fix error in sort logic 2022-04-06 15:44:14 +08:00
wangmm0220 ff21ecd364 optimize sort logic & fix memory leak 2022-04-06 11:43:17 +08:00
wangmm0220 411086c811 fix error in sort operation 2022-04-03 10:42:55 +08:00
wangmm0220 5aa3467e2b merge from 3.0 2022-04-02 19:02:45 +08:00
wangmm0220 155b14388b fix error in order by logic 2022-04-02 16:31:19 +08:00
wangmm0220 12c3a10a9b fix error in order by logic & fix no return error 2022-04-02 14:29:43 +08:00
Haojun Liao 7b0dfc6c4e [td-13039] support limit/offset 2022-04-01 17:21:24 +08:00
wangmm0220 69a5e55a24 [TD-14422]<fix> fix error in sort logic & add test case 2022-04-01 10:05:16 +08:00
Haojun Liao 39036ea512 [td-13039] support pseudo column in interval query. 2022-03-30 13:41:15 +08:00