GitHub user 10110346 opened a pull request:

    https://github.com/apache/spark/pull/21957

    [SPARK-24994][SQL] When the data type of the field is converted to other 
types, it can also support pushdown to parquet

    ## What changes were proposed in this pull request?
    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 `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`, this pr can support push down to parquet for this situation.
    
    ## How was this patch tested?
    added unit tests

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/10110346/spark otherpushdown

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/21957.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #21957
    
----
commit 7368d0ad9d790c589dee82d1d144d90fd1d40a70
Author: liuxian <liu.xian3@...>
Date:   2018-08-02T01:51:49Z

    fix

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to