在火花结构化流中访问当前水印
有什么方法可以访问火花结构化流中的当前水印值?
我想以活动时间顺序处理事件,以查找序列的模式。为此,我一直在考虑使用FlatmapGroupswithState和缓冲事件,直到水印通过(并避免进行缓冲后事件)并一对一地对其进行处理。但是我不知道如何访问当前水印来完成。火花结构流中是否可能发生事件?
Is there any way to access current watermark value in Spark Structured Streaming?
I'd like to process events in their event-time order to find patterns in sequences. To do it I was thinking of using flatMapGroupsWithState and buffer events till the watermark passes (and avoid buffering late events) and process them one-by-one. But I don't know how to access current watermark to do it. Is it event possible in Spark Structure Streaming?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以从
streamingquery
对象访问streamQueryProgress
:它将包含
eventtime.watermark
字段类似:
You can access the
StreamingQueryProgress
from yourStreamingQuery
object:It will contain an
eventTime.watermark
fieldsomething like: