Skip to content

Commit b981780

Browse files
authored
Update StrictProjection tests (#1422)
This aligns more closely with Java, and is also easier to read.
1 parent b34d8dd commit b981780

File tree

2 files changed

+398
-675
lines changed

2 files changed

+398
-675
lines changed

pyiceberg/transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ def _truncate_number_strict(
985985
elif isinstance(pred, BoundGreaterThanOrEqual):
986986
return GreaterThan(Reference(name), _transform_literal(transform, boundary.decrement())) # type: ignore
987987
elif isinstance(pred, BoundNotEqualTo):
988-
return EqualTo(Reference(name), _transform_literal(transform, boundary))
988+
return NotEqualTo(Reference(name), _transform_literal(transform, boundary))
989989
elif isinstance(pred, BoundEqualTo):
990990
# there is no predicate that guarantees equality because adjacent longs transform to the
991991
# same value

0 commit comments

Comments
 (0)