GitHub user gatorsmile opened a pull request:

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

    [SPARK-16936] [SQL] Case Sensitivity Support for Refresh Temp Table

    ### What changes were proposed in this pull request?
    Currently, the `refreshTable` API is always case sensitive.
    
    When users use the view name without the exact case match, the API silently 
ignores the call. Users might expect the command has been successfully 
completed. However, when users run the subsequent SQL commands, they might 
still get the exception, like 
    ```
    Job aborted due to stage failure: 
    Task 1 in stage 4.0 failed 1 times, most recent failure: Lost task 1.0 in 
stage 4.0 (TID 7, localhost): 
    java.io.FileNotFoundException: 
    File 
file:/private/var/folders/4b/sgmfldk15js406vk7lw5llzw0000gn/T/spark-bd4b9ea6-9aec-49c5-8f05-01cff426211e/part-r-00000-0c84b915-c032-4f2e-abf5-1d48fdbddf38.snappy.parquet
 does not exist
    ``` 
    
    This PR is to fix the issue.
    
    ### How was this patch tested?
    Added a test case.

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

    $ git pull https://github.com/gatorsmile/spark refreshTempTable

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

    https://github.com/apache/spark/pull/14523.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 #14523
    
----
commit ade173c2397613b2649d6f61e8fe27c2d659d088
Author: gatorsmile <gatorsm...@gmail.com>
Date:   2016-08-07T04:27:41Z

    fix

commit f62fb19791f590a8110d6a7be65987b348dc167a
Author: gatorsmile <gatorsm...@gmail.com>
Date:   2016-08-07T05:16:21Z

    fix2

commit fb0dd0b03640c9456313d8b7a63203607940e683
Author: gatorsmile <gatorsm...@gmail.com>
Date:   2016-08-07T05:35:55Z

    update the comment

----


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