diff --git a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/cdc/mysql/MySqlActionUtils.java b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/cdc/mysql/MySqlActionUtils.java index e8f3e7c3fb84..eb6e80267448 100644 --- a/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/cdc/mysql/MySqlActionUtils.java +++ b/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/action/cdc/mysql/MySqlActionUtils.java @@ -107,7 +107,9 @@ static MySqlSchemasInfo getMySqlTableInfos( String databaseName = schemas.getString("TABLE_CAT"); Matcher databaseMatcher = databasePattern.matcher(databaseName); if (databaseMatcher.matches()) { - try (ResultSet tables = metaData.getTables(databaseName, null, "%", null)) { + try (ResultSet tables = + metaData.getTables( + databaseName, null, "%", new String[] {"TABLE"})) { while (tables.next()) { String tableName = tables.getString("TABLE_NAME"); MySqlSchema mySqlSchema =