JingsongLi commented on code in PR #183:
URL: https://github.com/apache/flink-table-store/pull/183#discussion_r911535856


##########
flink-table-store-kafka/src/main/java/org/apache/flink/table/store/kafka/KafkaLogStoreFactory.java:
##########
@@ -237,6 +241,14 @@ public KafkaLogSinkProvider createSinkProvider(
                 helper.getOptions().get(CHANGELOG_MODE));
     }
 
+    private int[] getPrimaryKeyIndexes(ResolvedSchema schema) {
+        final List<String> columns = schema.getColumnNames();
+        return schema.getPrimaryKey()
+                .map(UniqueConstraint::getColumns)
+                .map(pkColumns -> 
pkColumns.stream().mapToInt(columns::indexOf).toArray())
+                .orElseGet(() -> new int[] {});
+    }
+

Review Comment:
   1.14 dose not provide `schema.getPrimaryKeyIndexes`, just copy from 1.15.



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