EMsnap commented on code in PR #5785:
URL: https://github.com/apache/inlong/pull/5785#discussion_r963189543


##########
inlong-sort/sort-connectors/postgres-cdc/src/main/java/org.apache.inlong.sort.cdc.postgres/DebeziumSourceFunction.java:
##########
@@ -273,9 +283,15 @@ public void initializeState(FunctionInitializationContext 
context) throws Except
                         new ListStateDescriptor<>(
                                 HISTORY_RECORDS_STATE_NAME, 
BasicTypeInfo.STRING_TYPE_INFO));
 
+        this.metricState =
+                stateStore.getUnionListState(
+                        new ListStateDescriptor<>(
+                                INLONG_METRIC_STATE_NAME, 
PrimitiveArrayTypeInfo.BYTE_PRIMITIVE_ARRAY_TYPE_INFO));

Review Comment:
   metric state should not use the same name for different operator



-- 
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: commits-unsubscr...@inlong.apache.org

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

Reply via email to