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

Preserve the space between interval and a following parenthesis #612

Closed
tconbeer opened this issue Jul 23, 2024 · 0 comments · Fixed by #615
Closed

Preserve the space between interval and a following parenthesis #612

tconbeer opened this issue Jul 23, 2024 · 0 comments · Fixed by #615
Labels
bug Something isn't working

Comments

@tconbeer
Copy link
Owner

Describe the bug
interval is sort of a word operator, but is being parsed as a function.

To Reproduce
select '2024-03-19' + interval (case when false then 1 else 0 end) day

Expected behavior
no-op

Actual behavior
select '2024-03-19' + interval(case when false then 1 else 0 end) day

Additional context
What is the output of sqlfmt --version? 0.21.3

What is the output of pip list (or pipx list if you installed using pipx)?

@tconbeer tconbeer added the bug Something isn't working label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant