You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report, @liaopeiyuan . I knew, and then forgot, that number literals could use scientific notation. This is true in postgres too. This is definitely a bug; I'll get this fixed asap.
We just need to change the number Rule to add a pattern that will match something like 1e-9 or -55.55e10. Decimals after the e are not supported (at least on pg).
Describe the bug
sqlfmt
adds unnecessary spaces for float literals in E notation in BigQueryTo Reproduce
1e-9
Expected behavior
1e-9
Actual behavior
1 e -9
Additional context
We are using the sqlfmt embedded in dbt develop. The UI on
https://sqlfmt.com/
produces the same result.The text was updated successfully, but these errors were encountered: