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 2021/07/14 07:59:00 UTC

[jira] [Resolved] (SPARK-36130) UnwrapCastInBinaryComparison fail when in.list contain CheckOverflow expression

     [ https://issues.apache.org/jira/browse/SPARK-36130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan resolved SPARK-36130.
---------------------------------
    Fix Version/s: 3.2.0
       Resolution: Fixed

Issue resolved by pull request 33335
[https://github.com/apache/spark/pull/33335]

> UnwrapCastInBinaryComparison fail when in.list contain CheckOverflow expression
> -------------------------------------------------------------------------------
>
>                 Key: SPARK-36130
>                 URL: https://issues.apache.org/jira/browse/SPARK-36130
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.2.0
>            Reporter: Fu Chen
>            Assignee: Fu Chen
>            Priority: Major
>             Fix For: 3.2.0
>
>
> UnwrapCastInBinaryComparison fail with the following case
>  
> {code:java}
> CREATE TABLE tbl (d decimal(33, 27)) USING PARQUET 
> SELECT d FROM tbl WHERE d NOT IN (d + 1){code}
>  
> Here {{in.list}} can be a {{CheckOverflow}} expression:
> {code:java}
>  cast(d#240 as decimal(34,27)) IN (CheckOverflow((promote_precision(cast(d#240 as decimal(34,27))) + 1.000000000000000000000000000), DecimalType(34,27), true)){code}
> {{}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org