Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MINOR][DOCS] Update foreachbatch docs #50188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fbertsch
Copy link

@fbertsch fbertsch commented Mar 6, 2025

  • Cleaned / clarified up wording
  • Changed example to read value, not update it

The new example makes it clear that in Spark Connect, the value is not available. In the previous example, it wasn't clear whether the my_value was available to the foreachbatch function, or if it was simply not returning the updated value back to the client.

What changes were proposed in this pull request?

  • Cleaned / clarified up wording
  • Changed example to read value, not update it

The new example makes it clear that in Spark Connect, the value is not available. In the previous example, it wasn't clear whether the my_value was available to the foreachbatch function, or if it was simply not returning the updated value back to the client.

Why are the changes needed?

To help clarify foreachBatch behavior, especially w/ Spark Connect.

Does this PR introduce any user-facing change?

Yes, docs.

How was this patch tested?

I tested the example function using Spark Connect. It failed with the example given.

Was this patch authored or co-authored using generative AI tooling?

No.

- Cleaned / clarified up wording
- Changed example to read value, not update it

The new example makes it clear that in Spark Connect,
the value is not available. In the previous example,
it wasn't clear whether the `my_value` was available
to the foreachbatch function, or if it was simply not returning
the updated value back to the client.
@fbertsch fbertsch changed the title Update foreachbatch docs [MINOR][DOCS] Update foreachbatch docs Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant