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: SQL ELSE clause should be implicitly NULL when omitted #19714

Merged

Conversation

alexander-beedie
Copy link
Collaborator

@alexander-beedie alexander-beedie commented Nov 10, 2024

Closes #19707.

When omitted, the ELSE branch in a CASE WHEN… should be implicitly equivalent to ELSE NULL (ref: PostgreSQL CASE/WHEN docs)

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Nov 10, 2024
@alexander-beedie alexander-beedie added the A-sql Area: Polars SQL functionality label Nov 10, 2024
@ritchie46 ritchie46 merged commit 441c18e into pola-rs:main Nov 11, 2024
27 of 28 checks passed
@alexander-beedie alexander-beedie deleted the sql-optional-else-in-case-when branch November 11, 2024 07:54
@BSalita
Copy link

BSalita commented Nov 11, 2024

Impressive. Issue fixed in less than 1 biz day.

@alexander-beedie
Copy link
Collaborator Author

Impressive. Issue fixed in less than 1 biz day.

...and now available for general use in the just-released 1.13.0 ;)

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.

SQL CASE Requires ELSE
3 participants