tconbeer/sqlfmt

Preserve the space between `interval` and a following parenthesis

Closed this issue · 0 comments

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)?