datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

support scientific notation for SQL literals

Open kmitchener opened this issue 3 years ago • 0 comments

Is your feature request related to a problem or challenge? Please describe what you are trying to do. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] (This section helps Arrow developers understand the context and why for this feature, in addition to the what)

Describe the solution you'd like A clear and concise description of what you want to happen.

Would like to be able to use scientific notation for numerics:

Currently, DataFusion takes the "e" notation as a column alias.

DataFusion CLI v11.0.0
❯ select 1e3;
+----+
| e3 |
+----+
| 1  |
+----+
1 row in set. Query took 0.012 seconds.

Add issue in sqlparser-rs to address the parsing issue: https://github.com/sqlparser-rs/sqlparser-rs/issues/610

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

kmitchener avatar Sep 11 '22 17:09 kmitchener