diff --git a/pyiceberg/partitioning.py b/pyiceberg/partitioning.py index 3074c30ea1..4279ff5f09 100644 --- a/pyiceberg/partitioning.py +++ b/pyiceberg/partitioning.py @@ -500,7 +500,7 @@ def _to_partition_representation(type: IcebergType, value: Any) -> Any: can return date that still needs to be transformed into an int (days since epoch). """ - return TypeError(f"Unsupported partition field type: {type}") + raise TypeError(f"Unsupported partition field type: {type}") @_to_partition_representation.register(TimestampType)