Skip to content

[SPARK-48881][SQL] Some dynamic partitions can be compensated to specific partition values#47351

Closed
fusheng9399 wants to merge 4 commits intoapache:masterfrom
fusheng9399:master
Closed

[SPARK-48881][SQL] Some dynamic partitions can be compensated to specific partition values#47351
fusheng9399 wants to merge 4 commits intoapache:masterfrom
fusheng9399:master

Conversation

@fusheng9399
Copy link

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
image

after it staticPartitions would be specific partition values
image

The benefit is that when executing
image

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

…oHadoopFsRelationCommand can be compensated to specific partition values
@github-actions github-actions bot added the SQL label Jul 15, 2024
fusheng9399 and others added 3 commits July 15, 2024 22:05
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants