You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2021/07/14 03:46:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17380282#comment-17380282 ] 

Hyukjin Kwon commented on SPARK-36130:
--------------------------------------

cc [~sunchao] FYI

> 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
>            Priority: Major
>
> 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