XiDuo You created SPARK-39792:
---------------------------------

             Summary: Add DecimalDivideWithOverflowCheck for decimal average
                 Key: SPARK-39792
                 URL: https://issues.apache.org/jira/browse/SPARK-39792
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.4.0
            Reporter: XiDuo You


If the result data type is decimal, the Average will first calculate the result 
using precison and scale of divide, then cast to the result data type. Ideally, 
we can save this cast by returning the result data type directly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to