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

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

Tathagata Das created SPARK-20717:
-------------------------------------

             Summary: 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


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. 
- Removing the state should not reset timeouts.

However, a limitation of the current implementation is that state cannot be null while timeout is set by the end of the function call is over. We should check this lazily.
 



--
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