shssoichiro/sqlformat-rs

Scientific notation is split

max-sixty opened this issue · 1 comments

Currently:

SELECT
  *,
  1e-7 AS small
FROM
  x

is formatted as:

-  1e-7 AS small
+  1 e -7 AS small

...which isn't valid SQL.

I'm not sure where this happens. It's sqlparser-rs which creates the initial expression, so I'm guessing it's being parsed correctly, unless there's a versioning issue?

ref PRQL/prql#1467

And thanks a lot for this too!