Skip to content

Commit

Permalink
Update StrictProjection tests (#1422)
Browse files Browse the repository at this point in the history
This aligns more closely with Java, and is also easier to
read.
  • Loading branch information
Fokko authored Dec 16, 2024
1 parent b34d8dd commit b981780
Show file tree
Hide file tree
Showing 2 changed files with 398 additions and 675 deletions.
2 changes: 1 addition & 1 deletion pyiceberg/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def _truncate_number_strict(
elif isinstance(pred, BoundGreaterThanOrEqual):
return GreaterThan(Reference(name), _transform_literal(transform, boundary.decrement())) # type: ignore
elif isinstance(pred, BoundNotEqualTo):
return EqualTo(Reference(name), _transform_literal(transform, boundary))
return NotEqualTo(Reference(name), _transform_literal(transform, boundary))
elif isinstance(pred, BoundEqualTo):
# there is no predicate that guarantees equality because adjacent longs transform to the
# same value
Expand Down
Loading

0 comments on commit b981780

Please sign in to comment.