Skip to content

Commit 9bf6cda

Browse files
committed
lint
1 parent cafd39d commit 9bf6cda

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pyiceberg/partitioning.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
Optional,
3030
Tuple,
3131
TypeVar,
32-
Union,
3332
)
3433
from urllib.parse import quote_plus
3534

@@ -416,8 +415,8 @@ def partition_record_value(partition_field: PartitionField, value: Any, schema:
416415
iceberg_type = schema.find_field(name_or_id=partition_field.source_id).field_type
417416
if not isinstance(value, int):
418417
# When adding files, it can be that we still need to convert from logical types to physical types
419-
iceberg_typed_value = _to_partition_representation(iceberg_type, value)
420-
transformed_value = partition_field.transform.transform(iceberg_type)(iceberg_typed_value)
418+
value = _to_partition_representation(iceberg_type, value)
419+
transformed_value = partition_field.transform.transform(iceberg_type)(value)
421420
return transformed_value
422421

423422

0 commit comments

Comments
 (0)