TDengine/source/libs/new-stream/test
Jinqing Kuang 163aa941de
feat(stream): add natural time units support for PERIOD trigger (#34766)
Implement week/month/year units for stream PERIOD trigger with natural
boundary alignment and offset support.

Key changes:
- Parser: Add validation for natural time units (w/n/y) and offset parameter
- Time utilities: Add getDuration() support for week/month/year units
- TriggerTask: Implement window calculation with natural boundary alignment
  - Week: align to Monday 00:00:00
  - Month: align to 1st of month 00:00:00
  - Year: align to Jan 1st 00:00:00
- Add offset support: PERIOD(1w, 1d) shifts window by 1 day
- Unit tests: Parser validation, time utilities, TriggerTask window calculation
- System tests: End-to-end tests for week/month/year units with offset
- Documentation: Update user manual with natural time unit examples

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-15 15:43:36 +08:00
..
checkpointEncryptionTest.cpp feat: taosk compatibility (#34343) 2026-01-22 14:24:32 +08:00
CMakeLists.txt feat(stream): add natural time units support for PERIOD trigger (#34766) 2026-03-15 15:43:36 +08:00
dataSinkTest.cpp feat(stream): optimize stream logic (#33027) 2025-09-25 15:48:14 +08:00
streamRunnerTest.cpp feat: new stream (#31678) 2025-07-16 14:42:16 +08:00
streamTriggerTaskTest.cpp feat(stream): add natural time units support for PERIOD trigger (#34766) 2026-03-15 15:43:36 +08:00