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: support uppercase when parsing Interval #8478

Merged
merged 4 commits into from
Dec 11, 2023

Conversation

QuenKar
Copy link
Contributor

@QuenKar QuenKar commented Dec 9, 2023

Which issue does this PR close?

Closes #8465 .

Rationale for this change

What changes are included in this PR?

convert the string value in has_units to lowercase.

Are these changes tested?

yes

Are there any user-facing changes?

yes

@github-actions github-actions bot added sql SQL Planner sqllogictest SQL Logic Tests (.slt) labels Dec 9, 2023
Copy link
Member

@waynexia waynexia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 👍 Thanks @QuenKar

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @QuenKar and @waynexia

@waynexia waynexia merged commit 171a5fd into apache:main Dec 11, 2023
22 checks passed
appletreeisyellow pushed a commit to appletreeisyellow/datafusion that referenced this pull request Dec 15, 2023
* fix: interval uppercase unit

* feat: add test

* chore: fmt

* chore: remove redundant test
appletreeisyellow pushed a commit to appletreeisyellow/datafusion that referenced this pull request Jan 3, 2024
* fix: interval uppercase unit

* feat: add test

* chore: fmt

* chore: remove redundant test
appletreeisyellow pushed a commit to appletreeisyellow/datafusion that referenced this pull request Jan 3, 2024
* fix: interval uppercase unit

* feat: add test

* chore: fmt

* chore: remove redundant test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL Planner sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

select interval '1 YEAR' error
4 participants