-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-16936] [SQL] Case Sensitivity Support for Refresh Temp Table #14523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Test build #63319 has finished for PR 14523 at commit
|
|
cc @rxin @cloud-fan This is a simple fix. Could you review the fix? Thanks! |
|
|
||
| // Delete a file | ||
| deleteOneFileInDirectory(location) | ||
| intercept[SparkException] {sql("select count(*) from view_refresh").first()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use intercept[..](...) for one line code.
|
LGTM, is it a regression for 2.0? |
|
This is not a regression, but Spark 2.0 has the issue. Thanks! |
|
Test build #63340 has finished for PR 14523 at commit
|
### 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. Author: gatorsmile <[email protected]> Closes #14523 from gatorsmile/refreshTempTable. (cherry picked from commit 5959df2) Signed-off-by: Wenchen Fan <[email protected]>
|
thanks, merging to master and 2.0! |
What changes were proposed in this pull request?
Currently, the
refreshTableAPI 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
This PR is to fix the issue.
How was this patch tested?
Added a test case.