-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-16030] [SQL] Allow specifying static partitions when inserting to data source tables #13746
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
… to data source tables
| Row(17, 18, 19, 20) :: | ||
| Row(21, 22, 23, 24) :: | ||
| Row(25, 26, 27, 28) :: Nil | ||
| ) |
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 also need this test for hive format tables. I will add that in a separate PR.
|
Test build #60737 has finished for PR 13746 at commit
|
|
This is ok for 2.0, but for something like this we should write it in a way so the rewriting logic can be unit tested without end-to-end suites. |
|
Actually can you try do it in this? I worry similar to past pull requests we will never revisit and the code will just look like this 2 years from now. |
| // dynamic_partitioning_columns are partitioning columns that do not assigned | ||
| // values in the PARTITION clause (e.g. c in the above example). | ||
| case i @ logical.InsertIntoTable( | ||
| l @ LogicalRelation(t: HadoopFsRelation, _, _), parts, query, overwrite, false) |
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.
l is a bad name to use
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.
and don't use t or i here either ...
|
Test build #60760 has finished for PR 13746 at commit
|
|
Closing this. #13769 is the new version. |
What changes were proposed in this pull request?
This PR adds the static partition support to INSERT statement when the target table is a data source table.
How was this patch tested?
New tests in
InsertSuite