GitHub user huaxingao opened a pull request:

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

    [SPARK-12409][SQL]JDBC AND operator push down

    For simple AND such as 
    select * from test where THEID = 1 AND NAME = 'fred', 
    The filters pushed down to JDBC layers are EqualTo(THEID,1), 
EqualTo(Name,fred). These are handled OK by the current code.
    For query such as 
    SELECT * FROM foobar WHERE THEID = 1 OR NAME = 'mary' AND THEID = 2" ,
    the filter is Or(EqualTo(THEID,1),And(EqualTo(NAME,mary),EqualTo(THEID,2)))
    So need to add And filter in JDBC layer.

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

    $ git pull https://github.com/huaxingao/spark spark_12409

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

    https://github.com/apache/spark/pull/10369.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 #10369
    
----
commit f5cfd1d038954a4b0fd1f502769fbd3140e7d35b
Author: Huaxin Gao <huax...@us.ibm.com>
Date:   2015-12-17T17:32:24Z

    [SPARK-12409][SQL]JDBC AND operator 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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to