[
https://issues.apache.org/jira/browse/SPARK-30919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-30919.
---------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 27672
[https://github.com/apache/spark/pull/27672]
> Make interval multiply and divide's overflow behavior consisitent with other
> interval operations
> ------------------------------------------------------------------------------------------------
>
> Key: SPARK-30919
> URL: https://issues.apache.org/jira/browse/SPARK-30919
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.0.0, 3.1.0
> Reporter: Kent Yao
> Assignee: Kent Yao
> Priority: Major
> Fix For: 3.0.0
>
>
> The current behavior of interval multiply and divide follows the ANSI SQL
> standard when overflow, it is compatible with other interval operations when
> `spark.sql.ansi.enabled` is true, but not compatible when
> `spark.sql.ansi.enabled` is false.
> When `spark.sql.ansi.enabled` is false, as the factor is a double value, so
> we should use java's rounding or truncation behavior for casting double to
> integrals.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]