kevinjqliu opened a new issue, #3496:
URL: https://github.com/apache/iceberg-python/issues/3496
`ResidualVisitor.visit_not_starts_with` appears to always return
`AlwaysFalse()` for partitioned residuals because it applies Python `not` to
the `AlwaysTrue()` / `AlwaysFalse()` object returned by `visit_starts_with`.
Example with an identity partition:
```text
partition value: x_part = "bb"
filter: NotStartsWith("x", "a")
actual residual: AlwaysFalse()
expected residual: AlwaysTrue()
```
This can attach an incorrect residual to planned scan tasks.
Relevant code: `pyiceberg/expressions/visitors.py`
`ResidualVisitor.visit_not_starts_with`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]