TDengine/source/libs/parser/test
Jinqing Kuang b9eb340111
feat(stream): implement idle trigger for stream partitions (#34902)
- Add IDLE_TIMEOUT(duration_time) option to STREAM_OPTIONS for
  configuring partition idle detection (valid range: [1s, 10d])
- Add IDLE and RESUME event types to EVENT_TYPE option
- Track per-partition last-receive time using monotonic clock to
  detect idle state transitions (ACTIVE -> IDLE -> ACTIVE)
- Trigger IDLE event once when a partition exceeds idle timeout;
  trigger RESUME event immediately when idle partition receives data
- Provide _tidlestart/_tidleend placeholders for idle/resume
  computation SQL (ns precision; incompatible with _twstart/_twend)
- Add idle/resume fields to notification payload: idleStart,
  idleEnd, idleDurationMs; IDLE and RESUME share the same triggerId
- Add system test: test/cases/18-StreamProcessing/04-Options/
  test_idle_trigger.py covering basic detection, resume, multiple
  partitions, timeout config, placeholder values, event combinations
- Update zh/en SQL reference and advanced-usage docs; add IDLE,
  IDLE_TIMEOUT, RESUME to reserved keywords list (3.3.4.0+)

Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 10:14:40 +08:00
..
Testing/Temporary feat:[TS-4897] virtual table (#30098) 2025-03-15 14:10:46 +08:00
CMakeLists.txt feat: new stream (#31678) 2025-07-16 14:42:16 +08:00
mockCatalog.cpp enh(rbac): access control (#34259) 2026-01-28 19:06:16 +08:00
mockCatalog.h TD-10674 insert unit test with multiple scenarios 2021-12-21 17:03:20 -05:00
mockCatalogService.cpp test: [TS-6100] Reopen stream ut (#32396) 2025-07-31 11:30:50 +08:00
mockCatalogService.h feat: the compact command adds 'start with end with' clause 2023-03-07 15:24:04 +08:00
parAlterToBalanceTest.cpp feat: batch tag value update (#34564) 2026-03-18 14:19:15 +08:00
parExplainToSyncdbTest.cpp feat(rbac): access control (#33822) 2025-12-29 19:27:11 +08:00
parInitialCTest.cpp feat[TS-7231]: identity authentication (#33702) 2025-12-05 17:35:10 +08:00
parInitialDTest.cpp feat: support secure delete option. (#34591) 2026-03-16 20:26:22 +08:00
parInsertTest.cpp test: [TS-6100] Reopen UTs (#32363) 2025-07-30 15:11:10 +08:00
parSelectTest.cpp enh(TD-29642): prohibit sorting by aggregate functions in non-aggregate queries (#33931) 2025-12-23 13:43:46 +08:00
parShowToUse.cpp test: [TS-6100] Reopen UTs (#32363) 2025-07-30 15:11:10 +08:00
parStreamTest.cpp feat(stream): implement idle trigger for stream partitions (#34902) 2026-03-24 10:14:40 +08:00
parTestMain.cpp feat:[TS-3718]save slow log file one day one file 2024-08-02 16:29:48 +08:00
parTestUtil.cpp enh(rbac): access control (#34259) 2026-01-28 19:06:16 +08:00
parTestUtil.h feat: support writing streams to existing tables 2023-01-17 16:47:43 +08:00