Skip to content

Commit

Permalink
Refactor DataNode format (#32964)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghaoranss authored Sep 23, 2024
1 parent 70e13e0 commit 5cc2f09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private boolean isActualDataNodesIncludedDataSourceInstance(final String actualD
*/
public String format(final DatabaseType databaseType) {
DialectDatabaseMetaData dialectDatabaseMetaData = new DatabaseTypeRegistry(databaseType).getDialectDatabaseMetaData();
return dialectDatabaseMetaData.getDefaultSchema().isPresent() ? dataSourceName + DELIMITER + schemaName + DELIMITER + tableName : dataSourceName + DELIMITER + tableName;
return dialectDatabaseMetaData.getDefaultSchema().isPresent() && schemaName != null ? dataSourceName + DELIMITER + schemaName + DELIMITER + tableName : dataSourceName + DELIMITER + tableName;
}

@Override
Expand Down

0 comments on commit 5cc2f09

Please sign in to comment.