You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2019/07/16 07:47:00 UTC
[jira] [Resolved] (SPARK-28395) Division operator support integral
division
[ https://issues.apache.org/jira/browse/SPARK-28395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-28395.
---------------------------------
Resolution: Fixed
Fix Version/s: 3.0.0
Issue resolved by pull request 25158
[https://github.com/apache/spark/pull/25158]
> Division operator support integral division
> -------------------------------------------
>
> Key: SPARK-28395
> URL: https://issues.apache.org/jira/browse/SPARK-28395
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Yuming Wang
> Priority: Major
> Fix For: 3.0.0
>
>
> PostgreSQL, Teradata, SQL Server, DB2 and Presto perform integral division with the {{/}} operator.
> But Oracle, Vertica, Hive, MySQL and MariaDB perform fractional division with the {{/}} operator.
> We need add a flag({{spark.sql.function.preferIntegralDivision}}) to control whether to use integral division with the {{/}} operator.
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org