Github user JihongMA commented on the pull request:

    https://github.com/apache/spark/pull/7056#issuecomment-118171474
  
    @viirya  I have opened a JIRA 
https://issues.apache.org/jira/browse/SPARK-8800, and have put more detailed 
specification I found how to handle decimal division in the case of 
Decimal.Unlimited type.   I propose we should return exact result whenever 
possible,  in the case of infinite long precision/scale case, fall back to the 
limit 38 or whatever as what hive has done. 
    
    here is another example where we should return 0.125 instead of 0
    
    scala> val aa = Decimal(1) /Decimal(8)
    aa: org.apache.spark.sql.types.Decimal = 0



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to