-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-17257][SQL] the physical plan of CREATE TABLE or CTAS should take CatalogTable #14823
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 #64461 has finished for PR 14823 at commit
|
|
Test build #64525 has finished for PR 14823 at commit
|
|
I missed this ping. Will review it tomorrow. |
| // TODO: this may be wrong for non file-based data source like JDBC, which should be external | ||
| // even there is no `path` in options. We should consider allow the EXTERNAL keyword. | ||
| val tableType = if (new CaseInsensitiveMap(options).contains("path")) { | ||
| CatalogTableType.EXTERNAL |
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.
After this PR, it becomes much clear to users. We can support Create External Data Source Table! We just need to confirm the path is provided.
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.
removing this means we change the syntax, I'd like to avoid it in this PR, and that's why I leave this TODO here, we can do it in follow-up
|
LGTM except one minor comment. |
|
Test build #64759 has finished for PR 14823 at commit
|
00bf25b to
52a40d9
Compare
|
Test build #64762 has finished for PR 14823 at commit
|
|
thanks for the review, merging to master! |
What changes were proposed in this pull request?
This is kind of a follow-up of #14482 . As we put
CatalogTablein the logical plan directly, it makes sense to let physical plans takeCatalogTabledirectly, instead of extracting some fields ofCatalogTablein planner and then construct a newCatalogTablein physical plan.How was this patch tested?
existing tests.