mgaido91 commented on issue #23468: [SPARK-26535][SQL] Parse literals as DOUBLE 
instead of DECIMALS
URL: https://github.com/apache/spark/pull/23468#issuecomment-451749540
 
 
   thanks for your comment @dongjoon-hyun. I wasn't aware of the behavior 
change in Hive. Then, if we don't want to do this, I think #21599 becomes even 
more important and we cannot forbid negative scales in decimals, because we 
would not be able anymore to represent numbers such as `1e40`.
   
   We may - instead - here try and reduce the cases when we use negative 
scales, so that `1e20` will be considered a `decimal(20, 0)` instead of a 
`decimal(1, -20)`. What do you think about this?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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