cloud-fan commented on a change in pull request #30514:
URL: https://github.com/apache/spark/pull/30514#discussion_r532611697
##########
File path:
sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/SupportsPartitionManagement.java
##########
@@ -79,7 +80,9 @@ void createPartition(
* @return true if the partition exists, false otherwise
*/
default boolean partitionExists(InternalRow ident) {
- return listPartitionIdentifiers(ident).length > 0;
+ String[] partitionNames = partitionSchema().names();
+ String[] requiredNames = Arrays.copyOfRange(partitionNames, 0,
ident.numFields());
Review comment:
It seems like we always call it with a complete partition spec.
----------------------------------------------------------------
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]