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: DATE_PART SQL syntax/parsing, improve some error messages #16761

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

alexander-beedie
Copy link
Collaborator

@alexander-beedie alexander-beedie commented Jun 6, 2024

Improves some error messages, raises on invalid use of "WEEK(weekday)" inside EXTRACT (which is BigQuery-specific and invalid elsewhere), and fixes DATE_PART parameter order (ouch).

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jun 6, 2024
@alexander-beedie alexander-beedie added the A-sql Area: Polars SQL functionality label Jun 6, 2024
@alexander-beedie alexander-beedie changed the title fix: Use of DATE_PART SQL syntax fix: Use of DATE_PART SQL syntax, improve some error messages Jun 6, 2024
@alexander-beedie alexander-beedie changed the title fix: Use of DATE_PART SQL syntax, improve some error messages fix: DATE_PART SQL syntax/parsing, improve some error messages Jun 6, 2024
@ritchie46 ritchie46 merged commit 2398b47 into pola-rs:main Jun 6, 2024
27 checks passed
@alexander-beedie alexander-beedie deleted the sql-datepart branch June 6, 2024 09:45
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