Skip to content

Commit 2a65eb7

Browse files
committed
lint
1 parent ae2e310 commit 2a65eb7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pyiceberg/table/sorting.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ def check_compatible(self, schema: Schema) -> None:
179179
if not source_field.field_type.is_primitive:
180180
raise ValidationError(f"Cannot sort by non-primitive source field: {source_field}")
181181
if not field.transform.can_transform(source_field.field_type):
182-
raise ValidationError(
183-
f"Invalid source type {source_field.field_type} for transform: {field.transform} on source field {source_field}"
184-
)
182+
raise ValidationError(f"Invalid source field {source_field} type for transform {field.transform}")
185183

186184

187185
UNSORTED_SORT_ORDER_ID = 0

0 commit comments

Comments
 (0)