MaxGekk opened a new pull request #30821:
URL: https://github.com/apache/spark/pull/30821


   ### What changes were proposed in this pull request?
   Add default methods `dropPartition()` in `SupportsPartitionManagement` and 
`dropPartitions()` in `SupportsAtomicPartitionManagement()` with the `purge` 
parameter. Also, propagate the parameter from the logical `command` to V2 exec 
node and further to catalog implementations.
   
   ### Why are the changes needed?
   The sql statement `ALTER TABLE .. DROP PARTITION` allows to specify the 
`PURGE` flag but it is ignored by v2 implementation. We should propagate it at 
least to `SupportsPartitionManagement` and to 
`SupportsAtomicPartitionManagement`, and let to implementations of those 
interface decide how to support it.
   
   ### Does this PR introduce _any_ user-facing change?
   Should not.
   
   ### How was this patch tested?
   By running new UT:
   ```
   $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly 
*AlterTablePartitionV2SQLSuite"
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to