Skip to content

Commit 16fa17e

Browse files
proletarianswuzexian
andauthored
[FLINK-38204][pipeline-connector][maxcompute] Use getLatestEvolvedSchema to get Schema in SessionManageOperator in case of using route. apache#4094
Co-authored-by: wuzexian <shanqing.wzx@alibaba-inc.com>
1 parent 379e5c9 commit 16fa17e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-maxcompute/src/main/java/org/apache/flink/cdc/connectors/maxcompute/coordinator/SessionManageOperator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public void processElement(StreamRecord<Event> element) throws Exception {
194194
}
195195

196196
private void emitLatestSchema(TableId tableId) throws Exception {
197-
Optional<Schema> schema = schemaEvolutionClient.getLatestOriginalSchema(tableId);
197+
Optional<Schema> schema = schemaEvolutionClient.getLatestEvolvedSchema(tableId);
198198
if (schema.isPresent()) {
199199
Schema latestSchema = schema.get();
200200
schemaMaps.put(tableId, latestSchema);

0 commit comments

Comments
 (0)