Skip to content

Commit 3293439

Browse files
authored
[FLINK-36985][pipeline-connector/paimon] Tolerante ColumnAlreadyExistException when apply AddColumnEvent in paimon
This closes #3828.
1 parent a130718 commit 3293439

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-paimon/src/main/java/org/apache/flink/cdc/connectors/paimon/sink/PaimonMetadataApplier.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,11 @@ private void applyAddColumn(AddColumnEvent event) throws SchemaEvolveException {
201201
} catch (Catalog.TableNotExistException
202202
| Catalog.ColumnAlreadyExistException
203203
| Catalog.ColumnNotExistException e) {
204-
throw new SchemaEvolveException(event, e.getMessage(), e);
204+
if (e instanceof Catalog.ColumnAlreadyExistException) {
205+
LOG.warn("{}, skip it.", e.getMessage());
206+
} else {
207+
throw new SchemaEvolveException(event, e.getMessage(), e);
208+
}
205209
}
206210
}
207211

0 commit comments

Comments
 (0)