Kent Yao created SPARK-30919:
--------------------------------
Summary: 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
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]