vvysotskyi commented on a change in pull request #1425: DRILL-6647: Update Calcite version to 1.17.0 URL: https://github.com/apache/drill/pull/1425#discussion_r212067079
########## File path: exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/DrillConditions.java ########## @@ -19,24 +19,14 @@ import org.apache.calcite.rel.rules.PushProjector; import org.apache.calcite.rex.RexCall; -import org.apache.calcite.rex.RexNode; public final class DrillConditions { - public static PushProjector.ExprCondition PRESERVE_ITEM = new PushProjector.ExprCondition() { - - @Override - public boolean apply(RexNode rexNode) { - return false; - } - - @Override - public boolean test(RexNode expr) { - if (expr instanceof RexCall) { - RexCall call = (RexCall)expr; - return "item".equals(call.getOperator().getName().toLowerCase()); - } - return false; + public static PushProjector.ExprCondition PRESERVE_ITEM = expr -> { Review comment: Thanks, done. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services