You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/07/28 02:28:58 UTC
[GitHub] [shardingsphere] strongduanmu commented on a change in pull request #11345: Improve loading TableMetaData
strongduanmu commented on a change in pull request #11345:
URL: https://github.com/apache/shardingsphere/pull/11345#discussion_r677924972
##########
File path: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/schema/builder/SchemaBuilder.java
##########
@@ -76,109 +69,87 @@
Map<String, TableMetaData> actualTableMetaMap = buildActualTableMetaDataMap(materials);
Map<String, TableMetaData> logicTableMetaMap = buildLogicTableMetaDataMap(materials, actualTableMetaMap);
Map<TableMetaData, TableMetaData> tableMetaDataMap = new HashMap<>(actualTableMetaMap.size(), 1);
- for (Entry<String, TableMetaData> entry : actualTableMetaMap.entrySet()) {
+ for (Map.Entry<String, TableMetaData> entry : actualTableMetaMap.entrySet()) {
tableMetaDataMap.put(entry.getValue(), logicTableMetaMap.getOrDefault(entry.getKey(), entry.getValue()));
}
return tableMetaDataMap;
}
-
Review comment:
Same problem.
##########
File path: shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/schema/builder/SchemaBuilder.java
##########
@@ -64,7 +57,7 @@
static {
ShardingSphereServiceLoader.register(DialectTableMetaDataLoader.class);
}
-
+
Review comment:
@Beyondeclipse Please keep indents consistent with the previous one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org