Au-Miner commented on code in PR #27973:
URL: https://github.com/apache/flink/pull/27973#discussion_r3115466627


##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/ptf/FromChangelogFunction.java:
##########
@@ -137,7 +138,10 @@ public void eval(
         final StringData opCode = input.getString(opColumnIndex);
         final RowKind rowKind = opMap.get(opCode);
         if (rowKind == null) {
-            return;
+            throw new TableRuntimeException(
+                    String.format(
+                            "Received invalid op code '%s'. Defined op codes 
are: %s.",
+                            opCode, opMap.keySet()));

Review Comment:
   Please double check if the current document from_changelog has been 
synchronized and modified



##########
flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/functions/ptf/FromChangelogFunction.java:
##########
@@ -137,7 +138,10 @@ public void eval(
         final StringData opCode = input.getString(opColumnIndex);

Review Comment:
   Is it possible for opCode to be null at present



-- 
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]

Reply via email to