Google cloud dataflow Beam/Dataflow:未定义窗口的拓扑的maxTimestamp

Google cloud dataflow Beam/Dataflow:未定义窗口的拓扑的maxTimestamp,google-cloud-dataflow,apache-beam,Google Cloud Dataflow,Apache Beam,对于全局窗口,maxTimestamp的预期行为是什么? 我有一个源无限的拓扑,它没有指定窗口策略。当我访问BoundedWindow的maxTimestamp字段时,我会得到一个未来的时间戳。这是预期的行为吗 是的,这是预期行为。全局窗口的结尾必须略小于Beam中可能的最大时间戳值,在实践中通常被称为+无穷大 从的源代码: 是的,这是故意的行为。全局窗口的结尾必须略小于Beam中可能的最大时间戳值,在实践中通常被称为+无穷大 从的源代码: // Triggers use maxTimest

对于全局窗口,maxTimestamp的预期行为是什么?
我有一个源无限的拓扑,它没有指定窗口策略。当我访问BoundedWindow的maxTimestamp字段时,我会得到一个未来的时间戳。这是预期的行为吗

是的,这是预期行为。全局窗口的结尾必须略小于Beam中可能的最大时间戳值,在实践中通常被称为+无穷大

从的源代码:


是的,这是故意的行为。全局窗口的结尾必须略小于Beam中可能的最大时间戳值,在实践中通常被称为+无穷大

从的源代码:


 // Triggers use maxTimestamp to set timers' timestamp. Timers fires when
 // the watermark passes their timestamps. So, the maxTimestamp needs to be
 // smaller than the TIMESTAMP_MAX_VALUE.
 // One standard day is subtracted from TIMESTAMP_MAX_VALUE to make sure
 // the maxTimestamp is smaller than TIMESTAMP_MAX_VALUE even after rounding up
 // to seconds or minutes.
 private static final Instant END_OF_GLOBAL_WINDOW = extractMaxTimestampFromProto();