[
https://issues.apache.org/jira/browse/SPARK-31761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17111304#comment-17111304
]
Kuhu Shukla commented on SPARK-31761:
-------------------------------------
Thanks [~sandeep.katta2007] for the quick response. The commit I was on is
06e1c0d788407af6101bf66d28cd44ca943d7a42 and also that this is reproducible
when reading from csv and not when values are passed as literals.
> Sql Div operator can result in incorrect output for int_min
> -----------------------------------------------------------
>
> Key: SPARK-31761
> URL: https://issues.apache.org/jira/browse/SPARK-31761
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.0.0
> Reporter: Kuhu Shukla
> Priority: Major
>
> Input in csv : -2147483648,-1 --> (_c0, _c1)
> {code}
> val res = df.selectExpr("_c0 div _c1")
> res.collect
> res1: Array[org.apache.spark.sql.Row] = Array([-2147483648])
> {code}
> The result should be 2147483648 instead.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]