Commit graph

548 commits

Author SHA1 Message Date
WANG MINGMING
a44a2a12a1
enh(tmq): optimize logic of tmq of query (#34303) 2026-02-26 17:06:07 +08:00
wangmm0220
7ce68a3f23 fix(taosd): conflicts from main 2026-02-06 11:21:26 +08:00
Simon Guan
d3eb594267 Merge branch 'main' into merge/3.3.8tomain 2026-02-05 13:35:23 +08:00
xinsheng Ren
cedbb4c2f8
fix: timetruncate results are abnormal when offset by natural month (#34442) 2026-02-05 10:20:43 +08:00
wangmm0220
893f1b431e fix(merge): conflict from 338 2026-02-03 23:51:41 +08:00
wangmm0220
6e705db306 enh(taosd): merge from 3.3.6 2026-02-03 16:50:09 +08:00
WANG MINGMING
b248f7fc77
opti(tmq): update tablelist if alter tag in tmq (#34483) 2026-02-03 16:19:21 +08:00
wangmm0220
0de0ffd04e enh(tmq): merge from 3.3.6 2026-02-02 19:12:35 +08:00
WANG MINGMING
c50f0033bb
enh(tmq): optimize update tablelist for topic of stable with filter when alter tag (#34417) 2026-02-02 16:38:12 +08:00
Simon Guan
7028cb234e fix: conflicts 2026-01-30 10:28:30 +08:00
Jinqing Kuang
6defccb35a
feat(stream): support true for row count limit (#34342) 2026-01-29 14:54:28 +08:00
Tony Zhang
02f1308dbc
enh: interp supports using non-null prev/next values to fill (#34236) 2026-01-16 10:32:01 +08:00
Simon Guan
33d6bc54ab fix: conflicts 2025-12-30 11:20:41 +08:00
Mario Peng
064a380942
fix:stream out table schema change problem (#34024) 2025-12-30 10:55:17 +08:00
Kaili Xu
31126ab2b6
feat(rbac): access control (#33822) 2025-12-29 19:27:11 +08:00
Simon Guan
60d797cdcf fix: conflicts 2025-12-23 15:31:08 +08:00
wangmm0220
25ac12c1df fix(tmq): merge from 3.3.6 2025-12-22 18:47:59 +08:00
WANG MINGMING
9cf0850bf2
fix(tmq): optimize tablelist in tmq when alter tag & modify tag if ne… (#33988) 2025-12-22 18:14:39 +08:00
Pan Wei
66e189aa8c
feat: support uncorrelated scalar subquery (#33913) 2025-12-22 11:35:33 +08:00
WANG MINGMING
79a5c48ffa
feat(tmq): [TS-6379]remove limition for table operation in tmq (#33834) 2025-12-15 11:26:46 +08:00
Simon Guan
4bd57b4c2d merge: from main .to 3.0 branch 2025-12-10 16:09:36 +08:00
WANG MINGMING
00e27e31c9
fix(tmq): race condition in tmq snapshot for data transformation (#33691) 2025-12-08 14:03:20 +08:00
Tony Zhang
e2024229fd Merge branch 'main' into merge/mainto3.0 2025-11-20 17:11:07 +08:00
WANG MINGMING
3e4371f196
enh(stream): optimize first/las ts interface (#33602)
* enh(stream): optimize first/las ts interface

* enh(stream): optimize first/las ts interface

* enh(stream): optimize first/las ts interface

* enh(stream): optimize first/last interface

* enh(stream): fix memory leak

* enh(stream): fix some errors

* enh(stream): fix memory leak
2025-11-20 09:39:26 +08:00
dapan1121
d92f21339b Merge remote-tracking branch 'origin/main' into merge/mainto3.0 2025-11-13 15:57:26 +08:00
Pan Wei
a7fda6d478
Merge pull request #33568 from taosdata/feat/opt_last
feat(query): retrieve first/last for the child table in a given uid list.
2025-11-13 13:48:14 +08:00
Haojun Liao
cf2267a324 feat: support query first/last. 2025-11-12 11:02:17 +08:00
WANG MINGMING
617b967d70
enh(stream): optimize logic of getting table list for stream reader & fix race condition in table list (#33110)
* fix(stream): race condition for tablelist

* fix(stream): race condition for tablelist

* fix(stream): race condition for tablelist

* fix(stream): optimize the logic of getting tablelist

* fix(stream): tablelist size is 0 if alter tag

* enh(stream): fix default found by robot

* enh(stream): fix default found by robot

* enh(stream): refactor the logic of table list in stream reader

* enh(stream): refactor the logic of table list in stream reader

* fix(query): fix getting tags a lot if uidlist is not empty

* fix(query): fix getting tags a lot if uidlist is not empty

* fix(stream): DataBlock is null

* enh(stream): refactor the logic of table list in stream reader

* enh(stream): refactor the logic of table list in stream reader

* enh(stream): refactor the logic of table list in stream reader

* enh(stream): refactor the logic of table list in stream reader

* enh(stream): refactor the logic of table list in stream reader

* enh(stream): fix memory leak
2025-11-11 15:57:54 +08:00
wangmm0220
a6cb6d4266 enh(stream): fix errors in ci 2025-11-11 11:20:49 +08:00
dapan1121
7c501fe23c fix: crash issue 2025-11-10 16:53:15 +08:00
Tony Zhang
72dc5060b1 enh: support stable tagFilterCache 2025-11-10 10:22:00 +08:00
wangmm0220
b889befe39 enh(stream): fix conflicts 2025-11-07 16:38:02 +08:00
wangmm0220
d94396ff5b Merge branch 'main' into fix/TD-37251-tablelist-main 2025-11-07 16:30:59 +08:00
Haojun Liao
a9a9e795d5 feat: support retrieve first/last ts. 2025-11-07 15:45:12 +08:00
Haojun Liao
f4c87241aa refactor: remove unused api. 2025-11-07 14:01:44 +08:00
WANG MINGMING
4f99614b56
fix(stream): rollback tsdbreader reset to avoid unexcepted error (#33400)
* fix(stream): vnode mem update to avoid lost data

* fix(stream): vnode mem update to avoid lost data

* fix(stream): vnode mem update to avoid lost data

* fix(stream): rollback tsdbreader reset
2025-10-31 17:35:22 +08:00
wangmm0220
5694e4ef54 fix(merge): merge from main 2025-10-21 19:25:14 +08:00
WANG MINGMING
fff8f5f975
fix(stream): reset tableScan operator (#33225)
* fix(stream): reset tableScan operator

* fix(stream): reset tableScan operator

* fix(stream): reset tableScan operator

* fix(stream): reset tableScan operator

* fix(stream): reset tableScan operator

* fix(stream): reset tableScan operator

* fix(stream): reset tableScan operator

* fix(stream): set uid in table scan reset

* fix(stream): reset tableScan operator

* fix(stream): reset tableScan operator

* fix(stream): reset tableScan operator

* fix(stream): reset tsdbreader in reset tablescan

* fix(stream): reset scanflag & modify case
2025-10-21 16:17:05 +08:00
Jing Sima
6dd1664315
enh: optimize vtable scan (#33232) 2025-10-17 13:18:37 +08:00
WANG MINGMING
e53920d0f2
Merge pull request #33284 from taosdata/main
enh(stream): merge from main
2025-10-16 17:09:48 +08:00
WANG MINGMING
a190048d55
enh(stream): reset table scan in reader (#33247) 2025-10-16 14:46:49 +08:00
wangmm0220
f1f994ff05 enh(stream): fix default found by robot 2025-10-15 18:18:46 +08:00
wangmm0220
c7f0635fe2 enh(stream): optimize logic of getting table list for stream reader & fix race condition in table list 2025-10-14 15:18:14 +08:00
Pan Wei
5c624e6998
enh: support interp and percentile functions in stream (#33150) 2025-10-13 19:03:45 +08:00
xinsheng Ren
55d65031a9
enh: add stream log (#33201) 2025-10-13 09:10:32 +08:00
WANG MINGMING
90b180fe96
fix(stream): [TD35698]decimal data error if snapshot is true (#33149) 2025-10-10 09:37:05 +08:00
WANG MINGMING
3dadce88b3
fix(stream): [TD35698]decimal data error if snapshot is true (#33189) 2025-10-10 09:37:00 +08:00
WANG MINGMING
558928cbe1
feat(stream): optimize stream logic (#33027)
* fix: remove debug log

* fix: remove assert

* fix: delete unused code

* enh: [TD-37251] Support expr in state window.

* feat(stream): support expr in state window trigger

* enh: [TD-37251] Fix SCL_IS_CONST_CALC condition.

* fix(stream): set ver in wal

* fix: print code

* fix: increase runner replica num

* fix: trigger mem error

* fix: sliding _tnext_ts value

* fix(stream): disable tagFilterCache in stream reader trigger

* fix: crash

* Revert "fix(stream): fix history calc finish check"

This reverts commit f93d17f1d2.

* Revert "fix(stream): fix calc request allocation in trigger"

This reverts commit c5410f6da0.

* fix(stream): fix calc request allocation in trigger

* enh: [TD-37251] External window support more placeholder.

* fix(stream): modify size of return from 1000000->4096

* enh: [TD-37251] Modify error msg when stream query do not have from clause.

* fix(stream): add log for group not found

* fix(stream): do not return gid=0 in walMetaData interface

* enh: [TD-37251] Fix missing ts column in vtable query.

* fix: test case build failed

* fix: invalid read issue

* fix(stream): add vtable logic

* fix(stream): encode error in wal

* fix(stream): add vtable logic

* fix(stream): add log

* fix: diff funcition crash

* Revert "Merge branch 'enh/TD-37251-3.0-dropoutput' into enh/TD-37251-3.0"

This reverts commit e93cbd6fd4, reversing
changes made to dc3230591d.

* Revert "Merge branch 'enh/TD-37251-3.0-vtable' into enh/TD-37251-3.0"

This reverts commit dc3230591d, reversing
changes made to 085e086782.

* fix(stream): fix block data len is too large if data type is vchar

* fix: drop output table

* feat: runner delete output table

* process pDropBlock in trigger task.

* fix(stream): opti log level

* fix(stream): build block for drop table

* fix(stream): set gid for normal table

* fix(stream): set gid for normal table

* feat: Support delete output.

* fix(stream): rows error

* fix(stream): memory leak

* enh: [TD-37251] Fix external window wrong ts column.

* fix(stream): fix calc time check in batch mode

* fix: merge aligned external window issue

* Revert "fix(stream): fix calc time check in batch mode"

This reverts commit d895b7f577.

* fix(stream): add test case

* fix(stream): add insert drop table logic

* fix: external window end issue

* fix(stream): add test case

* fix(stream): fix trigger pull data

* fix(stream): fix history calc request

* enh: drop table on snode

* fix(stream): adjust hash index if data is filtered in wal

* fix(stream): rollback

* enh: add merge aligned extwin window row idx

* fix: drop output table

* fix: compile issue

* enh: [TD-37251] Add flag to identify interval window is overlapped

* fix: overlap

* fix(stream): set gid=-1 for initialized

* fix(stream): modify log level

* fix: trigger slow issue

* fix(stream): add basic test for obj pool

* fix(stream): fix metadata clear in trigger

* fix(stream): fix idle runner allocation in trigger

* fix: handle agg output on externalWin

* fix: test case

* fix(stream): adjust log

* fix: reset pCtx pOutput

* fix: memory leak

* fix: search first win for tsCol

* fix(stream): add test case for schema change

* fix: mem leak

* fix: mem leak

* Reapply "Merge branch 'enh/TD-37251-3.0-vtable' into enh/TD-37251-3.0"

This reverts commit b508e66958.

* fix(stream): fix virtual table data pull

* fix(stream): fix set table request

* fix(stream): process empty uidlist

* fix(stream): fix set table request

* fix(stream): fix data new request in trigger

* fix(stream): tablelist error for vtable

* fix(stream): block ver is null

* fix(stream): remove version limition for wal

* fix(stream): block rows error

* fix(stream): fix pending calc param in batch mode

* fix(stream): auto create table

* fix(stream): fix stream vtable data merge

* fix: _tcurrentts

* fix(stream): destroy hash

* fix(stream): fix trigger status

* fix(stream): colId error in vtable

* fix(stream): update nrows of vtable data block

* fix(stream): fix trigger status

* fix(stream): enable low latency calc for period trigger

* fix: test case file path

* fix: test case file path

* fix: string to node in reader

* enh: add test log

* fix(stream): increase wait time of non-low-latency mode

* fix(stream): fix column capacity in scalar calculation

* fix(stream): fix column capacity in trigger expr calculation

* fix: get origTableInfos

* fix(stream): fix calc data pull in trigger

* fix(stream): fix calc data cache write in trigger

* enh: [TD-37251] Add flag to identify interval wind

* fix: external window memory usage issue

* fix(stream): fix epxr result column in trigger

* fix(stream): add metaCache for calc plan

* fix(stream): fix stream obj list clear

* fix(stream): rollback

* enh: [TD-37251] Add flag to identify interval wind

* fix: mem free

* fix(stream): add metaCache for calc plan

* fix(stream): fix calc data cache write in trigger

* fix(stream): fix calc data cache write in trigger

* enh: optimize external result block memory

* fix(stream): modify logic of judge table for create table

* fix(stream): fix event window check in trigger

* fix(stream): fix count window check in trigger

* fix(stream): colSize=0 while encoding block because pDataCol->hasNull is false in secode time & reload table list if create table

* enh: optimize stream memory

* fix(stream): trigger tag error

* fix: add log

* fix(stream): fix calc data write in trigger

* fix: drop output table

* fix(stream): fix max delay in trigger

* fix: drop output table

* fix(stream): fix max delay in trigger

* fix(build): handle return value of function

* fix(stream): read gid error if it is child table in stream

* fix(stream): fix calc param of history calculation

* fix(stream): fix recalc of delete data

* fix(stream): fix calc data of period trigger

* fix(stream): fix cache read check

* fix(stream): filter error in calc plan

* fix: reset externla window expr

* fix(stream): fix calc parm of max delay

* fix: time range and case issues

* fix(stream): fix crash in trigger

* fix: case issues

* fix: fix window node mem leak.

* fix(stream): fix meta data clear in trigger

* fix(stream): table schema is old in TsdbDataRequest for vtable

* fix: fix slingding window place holder check condition.

* Revert "fix: fix slingding window place holder check condition."

This reverts commit ad864a1dc1.

* fix(stream): null pointer error

* fix: case issue

* fix(stream): calc data error for vtable

* fix(stream): fix data sorter in trigger

* fix(stream): add log for delete data

* fix(stream): fix start version of realtime calculation

* fix(stream): fix cache data merger of vtable

* fix: case issues

* fix(ci): upgrade stream cases in test_cols_function

* fix(stream): gid not found if change tag value

* fix: fix slingding window place holder check condition.

* fix(stream): fix virt table info request in trigger

* fix(stream): set gid = uid if stream table type != SUPER table

* fix: clean cache data by group

* fix: add block info and case issues

* fix: fix heap-buffer-overflow.

* fix(stream): fix state window with extend param

* fix: fix access null pointer.

* fix: case issues

* fix: case issue

* fix(stream): fix ignore_nodata_trigger option for period trigger

* fix(stream): fix pseudo col fetch for calc data

* fix: Extend checking time to avoid timeout.

* fix: case issues

* fix(stream): fix group col fetch for virtual tables

* fix(stream): tag is NULL for non vtable

* fix(stream): fix sliding check of virtual table

* test(stream): check stream status after create all streams

* fix: add log

* fix(stream): fix wal meta truncate when ignore disorder

* fix(stream): gid not found for child table

* fix: fix place holder condition pushdown error.

* fix(stream): suid not equal when delete data for child table

* fix: id issue

* fix(stream): disable recalc for count trigger

* fix: cast result rowSize error in project

* fix(stream): add log for tsdb meta

* fix(stream): fix gid in tsdb meta request

* fix(stream): fix wend of unclosed windows

* fix(stream): fix ignore_nodata_trigger option for period trigger

* fix: case issues

* fix(stream): fix calc data pull for empty interval window

* fix: fix ext window condition.

* fix(ci): smaBasic performance check affectd by debug level log

* fix(stream): add suid when set table list for vtable

* fix: forbid using prefilter when using %%trows an trigger table is virtual table.

* fix: forbid prefilter %%trows cases.

* fix(stream): sort cid in tsdbVirtalDataReq

* fix: forbid prefilter %%trows cases.

* fix(stream): add log for virtual table tsdb data

* fix(stream): get delete msg for vtable

* fix: winRowIndex

* Revert "fix: winRowIndex"

This reverts commit e08b41cf96.

* fix(stream): fix data merge in trigger

* test(stream): fix case ans

* fix(stream): fix empty calc data pull for period trigger

* fix(stream): col index error for tsdbVirtalDataReq

* fix(stream): pTableList is NULL for vtable

* test(stream): fix case ans

* fix(stream): fix notification in trigger

* fix(stream): memory leak

* fix(stream): fix virtual data pull in trigger

* test(stream): fix case ans

* fix(stream): col index error for tsdbVirtalDataReq

* fix(stream): pTableList is NULL for vtable

* test(stream): fix case ans

* fix(stream): fix notification in trigger

* fix(stream): memory leak

* fix(stream): fix virtual data pull in trigger

* test(stream): fix case ans

* fix: case issue

* fix: crash issue

* fix: forbid prefilter %%trows cases.

* fix(stream): session case

* fix(stream): fix data pull for virtual tables

* fix(stream): add log

* fix(stream): fix calc req send in batch mode

* fix: fix stream UT

* fix(stream): tablelist is null for non vtable

* fix: mem leak

* fix(stream): fix compile error in trigger

* fix: return code issue

---------

Co-authored-by: dapan1121 <wpan@taosdata.com>
Co-authored-by: facetosea <285808407@qq.com>
Co-authored-by: Jing Sima <simondominic9997@outlook.com>
Co-authored-by: Jinqing Kuang <kuangjinqingcn@gmail.com>
Co-authored-by: Tony Zhang <tonyzhang@taosdata.com>
2025-09-25 15:48:14 +08:00
Jing Sima
72d3189367
feat: [TD-37052] Handle origin table's vnode change in stream query. (#32931) 2025-09-10 16:12:11 +08:00
xinsheng Ren
5eef3b8fed
fix: datainserter supports concurrent writing to the same group (#32384) 2025-08-06 13:40:54 +08:00