Skip to content

Commit

Permalink
Merge pull request #20856 from taosdata/54liuyao-patch-3
Browse files Browse the repository at this point in the history
Update 14-stream.md
  • Loading branch information
hjxilinx committed Apr 11, 2023
2 parents 213eea8 + 8ebe742 commit 9ed5685
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/zh/12-taos-sql/14-stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ SELECT * from information_schema.`ins_streams`;

在创建流时,可以通过 TRIGGER 指令指定流式计算的触发模式。

对于非窗口计算,流式计算的触发是实时的;对于窗口计算,目前提供 3 种触发模式,默认为 AT_ONCE
对于非窗口计算,流式计算的触发是实时的;对于窗口计算,目前提供 3 种触发模式,默认为 WINDOW_CLOSE

1. AT_ONCE:写入立即触发

Expand Down Expand Up @@ -163,9 +163,9 @@ T3 时刻,最新事件到达,T 向后推移超过了第二个窗口关闭的

TDengine 对于过期数据提供两种处理方式,由 IGNORE EXPIRED 选项指定:

1. 重新计算,即 IGNORE EXPIRED 0:默认配置,从 TSDB 中重新查找对应窗口的所有数据并重新计算得到最新结果
1. 重新计算,即 IGNORE EXPIRED 0:从 TSDB 中重新查找对应窗口的所有数据并重新计算得到最新结果

2. 直接丢弃, 即 IGNORE EXPIRED 1:忽略过期数据
2. 直接丢弃, 即 IGNORE EXPIRED 1:默认配置,忽略过期数据


无论在哪种模式下,watermark 都应该被妥善设置,来得到正确结果(直接丢弃模式)或避免频繁触发重算带来的性能开销(重新计算模式)。

0 comments on commit 9ed5685

Please sign in to comment.