twalthr commented on code in PR #19409: URL: https://github.com/apache/flink/pull/19409#discussion_r867767879
########## flink-table/flink-table-planner/src/main/java/org/apache/calcite/rex/RexSimplify.java: ########## @@ -2024,7 +2029,9 @@ private RexNode simplifySearch(RexCall call, RexUnknownAs unknownAs) { private RexNode simplifyCast(RexCall e) { RexNode operand = e.getOperands().get(0); operand = simplify(operand, UNKNOWN); - if (sameTypeOrNarrowsNullability(e.getType(), operand.getType())) { + if (sameTypeOrNarrowsNullability(e.getType(), operand.getType()) Review Comment: The change in this line and in `RexLiteral` is a blocker for this PR in my opinion. We should fix these things in Calcite first and only port the changes to the Flink code base, once merged in Calcite. -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org