rdblue commented on issue #24849: [SPARK-28018][SQL] Allow upcasting decimal to 
double/float
URL: https://github.com/apache/spark/pull/24849#issuecomment-506777340
 
 
   @gengliangwang, there were two suggestions in the DSv2 sync:
   
   * Add a decimal type for SQL literals that can be cast to float because the 
intended type of the literal is not known, or use some analysis rule that 
matches literals for the same purpose
   * Parse literals as floats and insert an implicit cast from float to decimal
   
   Both of those options are still valid.
   
   I'm surprised to see that decimals can be implicitly cast to float columns 
in most databases. Is this part of the SQL spec? If so, then I think we can go 
with that. Otherwise, I'd prefer one of the other options.

----------------------------------------------------------------
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