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 2018/09/20 02:25:00 UTC
[jira] [Resolved] (SPARK-25457) IntegralDivide (div) should not
always return long
[ https://issues.apache.org/jira/browse/SPARK-25457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-25457.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.5.0
Issue resolved by pull request 22465
[https://github.com/apache/spark/pull/22465]
> IntegralDivide (div) should not always return long
> --------------------------------------------------
>
> Key: SPARK-25457
> URL: https://issues.apache.org/jira/browse/SPARK-25457
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.5.0
> Reporter: Marco Gaido
> Assignee: Marco Gaido
> Priority: Major
> Fix For: 2.5.0
>
>
> The operation {{div}} returns always long. This came from Hive's behavior, which is different to the one of most of other DBMS (eg. MySQL, Postgres) which return as a datatype the same of the operands.
> This JIRA tracks changing our return type and allowing the users to re-enable the old behavior using {{spark.sql.legacy.integralDiv.returnLong}}.
> I'll submit a PR for this soon.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org