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


   ### What changes were proposed in this pull request?
   1. Check that the partition identifier passed to 
`SupportsPartitionManagement.partitionExists()` is fully specified (specifies 
all values of partition fields).
   2. Remove the custom implementation of `partitionExists()` from 
`InMemoryPartitionTable`, and re-use the default implementation from 
`SupportsPartitionManagement`.
   
   ### Why are the changes needed?
   The method is supposed to check existence of one partition but currently it 
can return `true` for partially specified partition. This can lead to incorrect 
commands behavior, for instance the commands could modify or place data in the 
middle of partition path.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   By running existing test suites:
   ```
   $ build/sbt "test:testOnly *AlterTablePartitionV2SQLSuite"
   $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly 
*SupportsPartitionManagementSuite"
   ```
   


----------------------------------------------------------------
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