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-49722][CONNECT] Fix Column ordering of dropDuplicates and dropDuplicatesWithinWatermarks #48173

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

Conversation

WweiL
Copy link
Contributor

@WweiL WweiL commented Sep 19, 2024

What changes were proposed in this pull request?

Similar to SPARK-31990, We must keep toSet.toSeq here because of the backward compatibility issue (the Streaming's state store depends on the groupCols order). Without this patch, a stateful streaming query cannot be rerun under spark connect if it was previous ran under vanilla spark (and vice versa)

Why are the changes needed?

Bug fix

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing CI should pass, functional wise this is straightforward

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

No

Copy link
Contributor

@HeartSaVioR HeartSaVioR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main challenge is about how to roll this change safely - for streaming query using Spark connect, this change will break the query.

We tend to use the trick of offset log metadata for streaming - probably we have to apply the same.

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.

2 participants