You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/09/16 19:09:00 UTC

[jira] [Commented] (SPARK-24994) Add UnwrapCastInBinaryComparison optimizer to simplify literal types

    [ https://issues.apache.org/jira/browse/SPARK-24994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17197198#comment-17197198 ] 

Apache Spark commented on SPARK-24994:
--------------------------------------

User 'sunchao' has created a pull request for this issue:
https://github.com/apache/spark/pull/29775

> Add UnwrapCastInBinaryComparison optimizer to simplify literal types
> --------------------------------------------------------------------
>
>                 Key: SPARK-24994
>                 URL: https://issues.apache.org/jira/browse/SPARK-24994
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: liuxian
>            Assignee: Chao Sun
>            Priority: Major
>             Fix For: 3.1.0
>
>
> For this statement: select * from table1 where a = 100;
> the data type of `a` is `smallint` , because the defaut data type of 100 is `int` ,so the data type of  'a' is converted to `int`.
> In this case, it does not support push down to parquet.
> In our business, for our SQL statements, and we generally do not convert 100 to `smallint`, We hope that it can support push down to parquet for this situation.



--
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