Commit graph

3163 commits

Author SHA1 Message Date
Bomin Zhang
d4e29c97fc
feat[TS-7529]: support TOTP authentication (#33852) 2025-12-10 15:25:21 +08:00
Tony Zhang
66a9a41526 enh: add new codes for period unit, range, and drop vtable validation 2025-12-08 11:40:19 +08:00
Tony Zhang
66cb641c3d Merge branch 'main' into merge/tony 2025-12-07 08:34:47 +08:00
Bomin Zhang
93fe726f9c
feat[TS-7231]: identity authentication (#33702) 2025-12-05 17:35:10 +08:00
dongming chen
643dfcb4fc
feat(TS-7270): encrypt algr (#33783) 2025-12-05 13:26:28 +08:00
Jinqing Kuang
f7318f788a
fix(stream): fix stream notification send (#33815) 2025-12-04 18:39:06 +08:00
Jing Sima
3cb2c4602b
enh: [TS-7132] Optimize state window on virtual table (#33638) 2025-12-01 10:04:07 +08:00
Tony Zhang
e2024229fd Merge branch 'main' into merge/mainto3.0 2025-11-20 17:11:07 +08:00
Tony Zhang
0044dfecc7
fix: stream compatibility between 3.3.7 and 3.3.8 (#33599) 2025-11-20 09:07:18 +08:00
Simon Guan
9e65ae2c6f Merge branch '3.3.6' into merge/3.3.6tomain 2025-11-19 17:52:58 +08:00
Yihao Deng
10c99ed7a3
Optimize CPU usage with transaction caching (#33604) 2025-11-18 19:02:54 +08:00
Simon Guan
169d535242 Merge branch 'main' into merge/mainto3.0 2025-11-15 11:29:18 +08:00
Simon Guan
7a9a0e2881 merge: from 3.3.6 to main 2025-11-14 10:29:06 +08:00
Simon Guan
ab555102a0 Merge branch '3.0' into merge/mainto3.0 2025-11-14 10:01:09 +08:00
Jing Sima
13523ce884
enh: [TD-38456] Forbid duplicate timestamp in count/state/event window. (#33442) 2025-11-14 09:37:42 +08:00
dongming chen
51017f2e54
enh/TD-38561-remove-error-log (#33547) 2025-11-13 11:53:23 +08:00
Simon Guan
c40797a9dd Merge branch 'main' into merge/mainto3.0 2025-11-11 18:56:05 +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
dapan1121
6857f85f74 fix: remove debug log 2025-11-11 12:38:18 +08:00
wangmm0220
a6cb6d4266 enh(stream): fix errors in ci 2025-11-11 11:20:49 +08:00
dapan1121
e833140ff3 fix: correct log info 2025-11-11 09:44:19 +08:00
dapan1121
3f69bfc293 fix: add debug log 2025-11-11 09:27:56 +08:00
dapan1121
a1f5745ed6 fix: add debug log 2025-11-11 09:11:50 +08:00
dapan1121
ae58b12a25 fix: add debug log 2025-11-11 08:42:50 +08:00
wangmm0220
62efbc7baf fix(stream): conflicts 2025-11-07 16:49:53 +08:00
wangmm0220
b96841b424 enh(stream): refactor the logic of table list in stream reader 2025-11-07 16:38:45 +08:00
pengrongkun94@qq.com
8e39a302e0 Merge remote-tracking branch 'origin/3.3.6' into HEAD 2025-11-07 16:05:07 +08:00
Mario Peng
93c1a388ba
feat:auth server (#33469) 2025-11-07 14:02:06 +08:00
dapan1121
6c2a1d72b6 Merge remote-tracking branch 'origin/main' into enh/addStreamLatency-marks 2025-11-06 10:23:28 +08:00
Yihao Deng
ed972dec31
avoid cpu occupied (#33468) 2025-11-05 14:33:24 +08:00
Yihao Deng
d921206258
avoid cpu occupied (#33465) 2025-11-05 14:33:16 +08:00
Jinqing Kuang
e0ffa98acc fix(stream): fix calc param reuse in the pool 2025-10-25 13:21:51 +08:00
yihaoDeng
44bf428ced Merge remote-tracking branch 'origin/3.3.6' into merge/3.3.6tomain 2025-10-17 14:18:33 +08:00
Jing Sima
6dd1664315
enh: optimize vtable scan (#33232) 2025-10-17 13:18:37 +08:00
Yihao Deng
e7b26a5134
fix(tref): increase TSDB_REF_OBJECTS from 100 to 2000 for improved reference handling (#33282) 2025-10-16 19:41:01 +08:00
Yihao Deng
05292ca670
fix(tref): increase TSDB_REF_OBJECTS from 100 to 2000 for improved reference handling (#33281) 2025-10-16 19:40:40 +08:00
Pan Wei
0bbc8083af
fix: add thread create debug log (#33262) 2025-10-16 08:35:49 +08:00
Tony Zhang
6bc92e146f Merge branch '3.3.6' into merge/3.3.6tomain 2025-10-14 20:09:47 +08:00
dongming chen
34b3e0875c
enh: TD-38278-print-error-code (#33231) 2025-10-14 16:01:58 +08:00
Kaili Xu
348907e4b1
enh: rsma docs and task monitor (#33219) 2025-10-13 17:00:00 +08:00
Kaili Xu
6241cce3a1
enh(rsma): support alter/decimal/composite key (#33177) 2025-10-10 11:24:13 +08:00
Jinqing Kuang
4f80e74852
enh(stream): remove synchronous wait for runner (#33154) 2025-09-30 22:31:34 +08:00
Kaili Xu
da32f297a2
enh: support rollup vgroups and show create rsma (#33128) 2025-09-29 17:04:05 +08:00
Haojun Liao
40c6c8a2bc
feat(query): add high priority queries process queue in mnode to avoid normal queries blocking critical processing. (#33088) 2025-09-29 10:01:33 +08:00
Kaili Xu
13ae5350b7
feat: rollup sma (#33063) 2025-09-26 17:32:32 +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
Tony Zhang
e4777c94b8
feat: support extend option in state window (#33003) 2025-09-22 13:52:52 +08:00
Hongze Cheng
e61fc3c3a6
feat: impl vnode scan (#32942)
* feat: support SQL commands

* feat: impl `scan database` client part code

* feat: impl `scan db.vgroups` client part code

* feat: impl `show scans` client codes

* feat: impl `show scan <id>` client code

* feat: impl `kill scan <id>` client code

* feat: impl mnode part code

* more code

* feat: impl mndScanDb

* feat: Impl all command mnode code

* feat: impl vnode part code

* fix: ci return code check

* fix: return code ci

* doc: change document

* fix: forever loop

* fix: fix some test cases

* add more codes

* fix: compile error

* fix: CI cases

* fix: some scan issues
2025-09-19 13:41:41 +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
Simon Guan
2268da1b5f Merge branch 'main' into merge/mainto3.0 2025-08-28 19:06:09 +08:00