From 9bf6cda09a0fd668cb14ff4462e2485f3cc32566 Mon Sep 17 00:00:00 2001 From: Fokko Date: Tue, 21 Jan 2025 16:49:14 +0100 Subject: [PATCH] lint --- pyiceberg/partitioning.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyiceberg/partitioning.py b/pyiceberg/partitioning.py index 6ca725b12c..574cd118dc 100644 --- a/pyiceberg/partitioning.py +++ b/pyiceberg/partitioning.py @@ -29,7 +29,6 @@ Optional, Tuple, TypeVar, - Union, ) from urllib.parse import quote_plus @@ -416,8 +415,8 @@ def partition_record_value(partition_field: PartitionField, value: Any, schema: iceberg_type = schema.find_field(name_or_id=partition_field.source_id).field_type if not isinstance(value, int): # When adding files, it can be that we still need to convert from logical types to physical types - iceberg_typed_value = _to_partition_representation(iceberg_type, value) - transformed_value = partition_field.transform.transform(iceberg_type)(iceberg_typed_value) + value = _to_partition_representation(iceberg_type, value) + transformed_value = partition_field.transform.transform(iceberg_type)(value) return transformed_value