smaheshwar-pltr commented on code in PR #4519:
URL: https://github.com/apache/iceberg-python/pull/4519#discussion_r4733661870


##########
pyiceberg/partitioning.py:
##########
@@ -470,13 +470,9 @@ class PartitionKey:
     def partition(self) -> Record:  # partition key transformed with iceberg 
internal representation as input
         iceberg_typed_key_values = []
         for raw_partition_field_value in self.field_values:
-            partition_fields = 
self.partition_spec.source_id_to_fields_map[raw_partition_field_value.field.source_id]
-            if len(partition_fields) != 1:
-                raise ValueError(f"Cannot have redundant partitions: 
{partition_fields}")

Review Comment:
   See the PR description for why I think it's fine to remove this check to 
mirror the other implementations (I've checked Java, Rust, and Go here)



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

To unsubscribe, e-mail: [email protected]

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