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

fix(rust,python,sql): rework SQL join constraint processing to properly account for all USING columns #11518

Merged

Conversation

alexander-beedie
Copy link
Collaborator

@alexander-beedie alexander-beedie commented Oct 4, 2023

Partially addresses #11290.

Ref: #11290 (comment)
Ref: #11501 (comment)

Turns out we have been silently eating all columns after the first one in USING clauses. I've reworked the processing here so that we now properly capture and apply all of the declared constraint columns, and added/fixed some test coverage.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Oct 4, 2023
@alexander-beedie alexander-beedie added the A-sql Area: Polars SQL functionality label Oct 4, 2023
@alexander-beedie alexander-beedie force-pushed the fix-sql-using-join-constraint branch 2 times, most recently from e947c29 to 2fbdca6 Compare October 4, 2023 18:39
@alexander-beedie alexander-beedie force-pushed the fix-sql-using-join-constraint branch from 5a53566 to 0d5cedd Compare October 4, 2023 18:48
@ritchie46 ritchie46 merged commit dd88d2b into pola-rs:main Oct 5, 2023
25 checks passed
@alexander-beedie alexander-beedie deleted the fix-sql-using-join-constraint branch October 5, 2023 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sql Area: Polars SQL functionality fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants