-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17589] [TEST] [2.0] Fix test case create external table in MetastoreDataSourcesSuite
#15145
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
| intercept[AnalysisException] { | ||
| sparkSession.catalog.createExternalTable("createdJsonTable", jsonFilePath.toString) | ||
| }.getMessage.contains("Table default.createdJsonTable already exists."), | ||
| }.getMessage.contains("Table `default`.`createdJsonTable` already exists."), |
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.
I think we may generate wrong error message, can you take a look at CreateDatasourceCommand?
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.
we should use unquotedString there
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.
Actually, I have a question about unquotedString. When should we issue an unquotedString? Unless we explicitly specify it, we always use quotedString for TableIdentifier. For FunctionIdentifier, we use an unquotedString.
Now, very few places are issuing unquotedString for table identifiers. Should we correct them to make all the messages consistent?
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.
The master branch also use unquotedString here, let's fix it first, and we can discuss about the choice between quotedString and unquotedString later
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.
Sure, will change it soon. Thanks!
|
Test build #65583 has finished for PR 15145 at commit
|
|
LGTM. Pending jenkins. |
|
Test build #65602 has finished for PR 15145 at commit
|
|
Thanks @gatorsmile. I am merging this fix to branch 2.0. |
…astoreDataSourcesSuite ### What changes were proposed in this pull request? This PR is to fix a test failure on the branch 2.0 builds: https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-branch-2.0-test-maven-hadoop-2.7/711/ ``` Error Message "Table `default`.`createdJsonTable` already exists.;" did not contain "Table default.createdJsonTable already exists." We should complain that createdJsonTable already exists ``` ### How was this patch tested? N/A Author: gatorsmile <gatorsmile@gmail.com> Closes #15145 from gatorsmile/fixTestCase.
|
Merged. |
|
Thanks! Let me close it |
What changes were proposed in this pull request?
This PR is to fix a test failure on the branch 2.0 builds:
https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test%20(Dashboard)/job/spark-branch-2.0-test-maven-hadoop-2.7/711/
How was this patch tested?
N/A