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,cli): don't conflate supported UNION ops in the SQL parser with (currently) unsupported UNION "BY NAME" variations #11576

Merged

Conversation

alexander-beedie
Copy link
Collaborator

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

Ref: #9370.

Will come back to this and add proper UNION BY NAME and UNION ALL BY NAME support later, but we currently silently conflate both of these variations with UNION [DISTINCT].

This PR catches such usage and raises a suitable error, eg:

InvalidOperationError: UNION [ALL] BY NAME not yet supported

(Will also notice any future flavours of UNION that we don't explicitly support, should any new ones be added to the parser later).

…arser with (currently unsupported) UNION "BY NAME" variations
@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Oct 6, 2023
@alexander-beedie alexander-beedie added the A-sql Area: Polars SQL functionality label Oct 6, 2023
@ritchie46 ritchie46 merged commit 01edba3 into pola-rs:main Oct 7, 2023
28 checks passed
@alexander-beedie alexander-beedie deleted the sql-unsupported-union-by-name branch October 7, 2023 05:51
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.

2 participants