diff --git a/paimon-flink/paimon-flink-cdc/src/test/java/org/apache/paimon/flink/action/cdc/mysql/MySqlSyncTableActionITCase.java b/paimon-flink/paimon-flink-cdc/src/test/java/org/apache/paimon/flink/action/cdc/mysql/MySqlSyncTableActionITCase.java index db8e1744b35b..b4cd7061473a 100644 --- a/paimon-flink/paimon-flink-cdc/src/test/java/org/apache/paimon/flink/action/cdc/mysql/MySqlSyncTableActionITCase.java +++ b/paimon-flink/paimon-flink-cdc/src/test/java/org/apache/paimon/flink/action/cdc/mysql/MySqlSyncTableActionITCase.java @@ -695,8 +695,9 @@ public void testNoPrimaryKey() { .satisfies( anyCauseMatches( IllegalArgumentException.class, - "Primary keys are not specified. " - + "Also, can't infer primary keys from source table schemas because " + "Failed to set specified primary keys for sink table " + + tableName + + ". Also, can't infer primary keys from source table schemas because " + "source tables have no primary keys or have different primary keys.")); } diff --git a/paimon-flink/paimon-flink-cdc/src/test/java/org/apache/paimon/flink/action/cdc/postgres/PostgresSyncTableActionITCase.java b/paimon-flink/paimon-flink-cdc/src/test/java/org/apache/paimon/flink/action/cdc/postgres/PostgresSyncTableActionITCase.java index be67cd20b662..157ac2138cc9 100644 --- a/paimon-flink/paimon-flink-cdc/src/test/java/org/apache/paimon/flink/action/cdc/postgres/PostgresSyncTableActionITCase.java +++ b/paimon-flink/paimon-flink-cdc/src/test/java/org/apache/paimon/flink/action/cdc/postgres/PostgresSyncTableActionITCase.java @@ -525,8 +525,9 @@ public void testNoPrimaryKey() { .satisfies( anyCauseMatches( IllegalArgumentException.class, - "Primary keys are not specified. " - + "Also, can't infer primary keys from source table schemas because " + "Failed to set specified primary keys for sink table " + + tableName + + ". Also, can't infer primary keys from source table schemas because " + "source tables have no primary keys or have different primary keys.")); }