5a482e7209
### What changes were proposed in this pull request? Change Literal.sql to output CAST('fpValue' AS FLOAT) instead of CAST(fpValue AS FLOAT) as the SQL for a floating point literal. ### Why are the changes needed? The old version doesn't work for very small floating point numbers; the value will fail to parse if it doesn't fit in a DECIMAL(38). This doesn't apply to doubles because they have special literal syntax. ### Does this PR introduce any user-facing change? Not really. ### How was this patch tested? New unit tests. Closes #26114 from jose-torres/fpliteral. Authored-by: Jose Torres <joseph.torres@databricks.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> |
||
---|---|---|
.. | ||
benchmarks | ||
src | ||
pom.xml |