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

[SPARK-50654][SS] CommitMetadata should set stateUniqueIds to None in V1 #49278

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

WweiL
Copy link
Contributor

@WweiL WweiL commented Dec 24, 2024

What changes were proposed in this pull request?

Per request from this comment, https://github.com/apache/spark/pull/48355/files#r1866546734, we will put None in the stateUniqueIds of CommitMetadata when in V1. So now the logic is as follows:

  1. In V1, CommitMetadata.stateUniqueIds = None for all stateful and stateless queries
  2. In V2, CommitMetadata.stateUniqueIds = Some(Map.empty) for stateless queries
  3. In V2, CommitMetadata.stateUniqueIds = Some(<non-empty-map>) for stateful queries

Also removed the legacy test as a side effect

Why are the changes needed?

Follow up

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests

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

No

@WweiL WweiL changed the title [SPARK-49461][SS][FOLLOWUP] [SPARK-50654][SS] CommitMetadata should set stateUniqueIds to None in V1 Dec 24, 2024
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