[SPARK-48881][SQL] Some dynamic partitions can be compensated to specific partition values#47351
Closed
fusheng9399 wants to merge 4 commits intoapache:masterfrom
Closed
[SPARK-48881][SQL] Some dynamic partitions can be compensated to specific partition values#47351fusheng9399 wants to merge 4 commits intoapache:masterfrom
fusheng9399 wants to merge 4 commits intoapache:masterfrom
Conversation
…oHadoopFsRelationCommand can be compensated to specific partition values
…rgument list by inserting () is deprecated` The pr aims to fix compilation warning: `adaptation of an empty argument list by inserting () is deprecated` Fix compilation warning. No. Manually check. Pass GA. No. Closes apache#47350 from panbingkun/ParquetCommitterSuite_deprecated. Authored-by: panbingkun <panbingkun@baidu.com> Signed-off-by: yangjie01 <yangjie01@baidu.com>
…oHadoopFsRelationCommand can be compensated to specific partition values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
when writing dynamic partitions, some dynamic partitions in InsertIntoHadoopFsRelationCommand can be compensated to specific partition values.
Why are the changes needed?
When executing the following SQL :
INSERT OVERWRITE TABLE A PARTITION(event_day, event_type) SELECT id, event_day, event_type from B where event_day = '20240712'
before it staticPartitions would be empty in InsertIntoHadoopFsRelationCommand

after it staticPartitions would be specific partition values

The benefit is that when executing

in InsertIntoHadoopFsRelationCommand, it can greatly reduce the pressure on hive and improve the efficiency of task execution.
Does this PR introduce any user-facing change?
No
How was this patch tested?
manually test
Was this patch authored or co-authored using generative AI tooling?
NO