You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2018/01/14 07:57:00 UTC

[jira] [Updated] (SPARK-22278) Expose current event time watermark and current processing time in GroupState

     [ https://issues.apache.org/jira/browse/SPARK-22278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiao Li updated SPARK-22278:
----------------------------
    Fix Version/s:     (was: 3.0.0)
                   2.3.0

> Expose current event time watermark and current processing time in GroupState
> -----------------------------------------------------------------------------
>
>                 Key: SPARK-22278
>                 URL: https://issues.apache.org/jira/browse/SPARK-22278
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Structured Streaming
>    Affects Versions: 2.2.0
>            Reporter: Tathagata Das
>            Assignee: Tathagata Das
>             Fix For: 2.3.0
>
>
> Complex state-updating and/or timeout-handling logic in mapGroupsWithState functions may require taking decisions based on the current event-time watermark and/or processing-time. Currently, you can use the sql function `current_timestamp` to get the current processing time, but it needs to passed inserted in every row with a select, and then passed through the encoder, which isnt efficient. Furthermore, there is no way to get the current watermark.
> This JIRA is to expose them through the GroupState API.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org