GitHub user yjshen opened a pull request:

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

    [SPARK-9182][SQL]Filters are not passed through to jdbc source

    This PR fixes unable to push filter down to JDBC source caused by `Cast` 
during pattern matching.
    
    While we are comparing columns of different type, there's a big chance we 
need a cast on the column, therefore not match the pattern directly on 
Attribute and would fail to push down.

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

    $ git pull https://github.com/yjshen/spark jdbc_pushdown

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

    https://github.com/apache/spark/pull/8049.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 #8049
    
----
commit 890e66cd20cf22f4ad6ed09391511f0c56420a00
Author: Yijie Shen <[email protected]>
Date:   2015-08-08T07:49:43Z

    eliminate cast on attribute to enable filter push down

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to