-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17192] [SQL] Issue Exception when Users Specify the Partitioning Columns without a Given Schema #14572
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 #63479 has finished for PR 14572 at commit
|
|
Test build #63489 has finished for PR 14572 at commit
|
|
Test build #63553 has finished for PR 14572 at commit
|
|
retest this please |
|
Test build #64175 has finished for PR 14572 at commit
|
|
sorry. I missed this PR. Can you update? |
|
No problem. The conflicts are resolved. Thanks! @yhuai |
| failAnalysis("Cannot specify partition information if the table schema is not specified " + | ||
| "when creating and will be inferred at runtime") | ||
| } | ||
| c |
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.
Because of this change, I think we need to create a new jira.
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.
A new JIRA is created and the PR title is updated. Thanks!
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.
How about It is not allowed to specify partition columns when the table schema is not defined. When the table schema is not provided, schema and partition columns will be inferred.?
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.
Sounds better to me. Thanks! Let me change it now.
|
Test build #64225 has finished for PR 14572 at commit
|
|
LGTM. I left one comment about the error message |
|
Test build #64244 has finished for PR 14572 at commit
|
|
retest this please |
|
Test build #64452 has finished for PR 14572 at commit
|
|
ping @yhuai : ) |
|
LGTM. Thanks. Merging to master. |
What changes were proposed in this pull request?
Address the comments by @yhuai in the original PR: #14207
First, issue an exception instead of logging a warning when users specify the partitioning columns without a given schema.
Second, refactor the codes a little.
How was this patch tested?
Fixed the test cases.