zheliu2 commented on code in PR #15550:
URL: https://github.com/apache/iceberg/pull/15550#discussion_r2907042031
##########
api/src/main/java/org/apache/iceberg/transforms/Identity.java:
##########
@@ -146,6 +147,10 @@ public UnboundPredicate<T> project(String name,
BoundPredicate<T> predicate) {
@Override
public UnboundPredicate<T> projectStrict(String name, BoundPredicate<T>
predicate) {
+ if (predicate.term() instanceof BoundTransform) {
+ return ProjectionUtil.projectTransformPredicate(this, name, predicate);
Review Comment:
Thanks @ldudas-marx, that makes sense — since the identity transform will
never match the predicate's transform, `projectTransformPredicate` would always
return null here anyway. Updated to return `null` directly to make the intent
clearer.
--
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]