[ https://issues.apache.org/jira/browse/SPARK-29096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xingbo Jiang updated SPARK-29096: --------------------------------- Parent: SPARK-27764 (was: SPARK-26217) > 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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org