You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "snuyanzin (via GitHub)" <gi...@apache.org> on 2023/03/23 10:32:46 UTC

[GitHub] [flink] snuyanzin commented on a diff in pull request #21934: [FLINK-27998][table] Upgrade Calcite to 1.30.0

snuyanzin commented on code in PR #21934:
URL: https://github.com/apache/flink/pull/21934#discussion_r1145983345


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/serde/RexNodeJsonDeserializer.java:
##########
@@ -217,9 +218,10 @@ private static RexNode deserializeSarg(
                 builder.add(range);
             }
         }
-        final boolean containsNull = sargNode.required(FIELD_NAME_CONTAINS_NULL).booleanValue();
-        return rexBuilder.makeSearchArgumentLiteral(
-                Sarg.of(containsNull, builder.build()), relDataType);
+        final RexUnknownAs nullAs =

Review Comment:
   The main change Calcite level was movement from 2-value sarg to 3-value sarg and replacement of `boolean containsNull` with `RexUnknownAs nullAs`. I guess it is possible to deserialize old plans. I will see what could be done here 



##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/serde/RexNodeJsonDeserializer.java:
##########
@@ -217,9 +218,10 @@ private static RexNode deserializeSarg(
                 builder.add(range);
             }
         }
-        final boolean containsNull = sargNode.required(FIELD_NAME_CONTAINS_NULL).booleanValue();
-        return rexBuilder.makeSearchArgumentLiteral(
-                Sarg.of(containsNull, builder.build()), relDataType);
+        final RexUnknownAs nullAs =

Review Comment:
   The main change on Calcite level was movement from 2-value sarg to 3-value sarg and replacement of `boolean containsNull` with `RexUnknownAs nullAs`. I guess it is possible to deserialize old plans. I will see what could be done here 



-- 
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-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org