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-50691][SQL][FOLLOWUP] Use UnsafeProjection for LocalRelation rows instead of ComparableLocalRelation #49322

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

Conversation

vladimirg-db
Copy link
Contributor

@vladimirg-db vladimirg-db commented Dec 27, 2024

What changes were proposed in this pull request?

Use UnsafeProjection for LocalRelation rows instead of ComparableLocalRelation.

Why are the changes needed?

UnsafeRow.equals compares the whole byte sequence under it, so it's a convenient way to compare all kind of row values, including ArrayBasedMapData.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing test.

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

copilot.nvim.

@vladimirg-db vladimirg-db changed the title [SQL][FOLLOWUP] Update ComparableLocalRelation to support UnsafeRow comparison [SPARK-50691][SQL][FOLLOWUP] Update ComparableLocalRelation to support UnsafeRow comparison Dec 27, 2024
@github-actions github-actions bot added the SQL label Dec 27, 2024
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/update-comparable-local-relation-to-cover-unsafe-row branch 2 times, most recently from dedd6f9 to 2b9a993 Compare December 27, 2024 16:16
@vladimirg-db vladimirg-db changed the title [SPARK-50691][SQL][FOLLOWUP] Update ComparableLocalRelation to support UnsafeRow comparison [SPARK-50691][SQL][FOLLOWUP] Use UnsafeProjection for LocalRelation rows instead of ComparableLocalRelation Dec 27, 2024
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/update-comparable-local-relation-to-cover-unsafe-row branch 2 times, most recently from 7ff35e4 to 4b402da Compare December 28, 2024 11:32
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/update-comparable-local-relation-to-cover-unsafe-row branch from 4b402da to 37c2ec9 Compare December 28, 2024 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant