Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/7229#discussion_r34158530
--- Diff: docs/streaming-programming-guide.md ---
@@ -854,6 +854,8 @@ it with new information. To use this, you will have to
do two steps.
1. Define the state update function - Specify with a function how to
update the state using the
previous state and the new values from an input stream.
+Spark will run the `updateStateByKey` operation for all existing keys,
regardless of whether they have new data in a batch or not. If
`updateStateByKey` returns None then the key-value pair will be eliminated.
--- End diff --
Sorry to go around one more time on this, but I think the text should be
sharpened slightly. "operation" might be better as "update function", and it's
a question of what the update function returns, not updateStateByKey. (`None`
can be code font too.)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]