jose-torres opened a new pull request #26114: [SPARK-29468][SQL] Change 
Literal.sql to be correct for floats.
URL: https://github.com/apache/spark/pull/26114
 
 
   ### 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.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to