[
https://issues.apache.org/jira/browse/SPARK-29096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Takeshi Yamamuro updated SPARK-29096:
-------------------------------------
Parent Issue: SPARK-30374 (was: SPARK-27764)
> The exact math method should be called only when there is a corresponding
> function in Math
> ------------------------------------------------------------------------------------------
>
> Key: SPARK-29096
> URL: https://issues.apache.org/jira/browse/SPARK-29096
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Gengliang Wang
> Assignee: Gengliang Wang
> Priority: Major
> Fix For: 3.0.0
>
>
> After https://github.com/apache/spark/pull/21599, if the option
> "spark.sql.failOnIntegralTypeOverflow" is enabled, all the Binary Arithmetic
> operator will used the exact version function.
> However, only `Add`/`Substract`/`Multiply` has a corresponding exact function
> in java.lang.Math . When the option "spark.sql.failOnIntegralTypeOverflow" is
> enabled, a runtime exception "BinaryArithmetics must override either
> exactMathMethod or genCode" is thrown if the other Binary Arithmetic
> operators are used, such as "Divide", "Remainder".
> The exact math method should be called only when there is a corresponding
> function in Math
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]