You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shixiong Zhu (JIRA)" <ji...@apache.org> on 2017/05/15 17:49:04 UTC

[jira] [Resolved] (SPARK-20717) Tweak MapGroupsWithState update function behavior

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

Shixiong Zhu resolved SPARK-20717.
----------------------------------
    Resolution: Fixed

> Tweak MapGroupsWithState update function behavior
> -------------------------------------------------
>
>                 Key: SPARK-20717
>                 URL: https://issues.apache.org/jira/browse/SPARK-20717
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Structured Streaming
>    Affects Versions: 2.2.0
>            Reporter: Tathagata Das
>            Assignee: Tathagata Das
>             Fix For: 2.2.0
>
>
> Timeout and state data are two independent entities and should be settable independently. Therefore, in the same call of the user-defined function, one should be able to set the timeout before initializing the state and also after removing the state. Whether timeouts can be set or not should not depend on the current state, and vice versa. 
> However, a limitation of the current implementation is that state cannot be null while timeout is set. This is checked lazily after the function call has completed.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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