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

Scientific notation is split #16

Closed
max-sixty opened this issue Jan 9, 2023 · 1 comment
Closed

Scientific notation is split #16

max-sixty opened this issue Jan 9, 2023 · 1 comment

Comments

@max-sixty
Copy link

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

@max-sixty
Copy link
Author

And thanks a lot for this too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant