ndrluis commented on code in PR #1161: URL: https://github.com/apache/iceberg-python/pull/1161#discussion_r1754541566
########## pyiceberg/table/update/spec.py: ########## @@ -280,7 +280,7 @@ def _partition_field(self, transform_key: Tuple[int, Transform[Any, Any]], name: for field_key in historical_fields: if field_key[0] == source_id and field_key[2] == repr(transform): if name is None or field_key[3] == name: - return PartitionField(source_id, field_key[1], transform, name) + return PartitionField(source_id, field_key[1], transform, field_key[3]) Review Comment: What do you think about using an Enum to get the values from the field_key? I think that will make it easier to understand what each position means. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org