GitHub user sureshthalamati opened a pull request:

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

    [SPARK-18141][SQL] Fix to quote column names in the predicate clause  of 
the JDBC RDD generated sql statement

    ## What changes were proposed in this pull request?
    
    SQL query generated for the JDBC data source is not quoting columns in the 
predicate clause. When the source table has quoted column names,  spark jdbc 
read fails with column not found error incorrectly.  
    
    This PR fixes by quoting column names in the generated  SQL for predicate 
clause  when filters are pushed down to the data source..
    
    ## How was this patch tested?
    Added new test case to the JdbcSuite

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

    $ git pull https://github.com/sureshthalamati/spark 
filter_quoted_cols-SPARK-18141

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

    https://github.com/apache/spark/pull/15662.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 #15662
    
----
commit 0944e055b72adadb9647007f03b8cea81faf3c77
Author: sureshthalamati <suresh.thalam...@gmail.com>
Date:   2016-10-27T18:27:34Z

    [SPARK-18141][SQL] Fix to quote column names in the predicate clause of the 
JDBC RDD generated sql statement

----


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