Skip to content

Commit

Permalink
Refactor OpenGaussMetaDataLoader (#30250)
Browse files Browse the repository at this point in the history
* Refactor YamlBroadcastRuleConfigurationSwapper

* Refactor ShardingSphereStatisticsCollector

* Refactor OpenGaussMetaDataLoader
  • Loading branch information
terrymanu authored Feb 22, 2024
1 parent d248bae commit 897f2ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private Map<String, Multimap<String, IndexMetaData>> loadIndexMetaDataMap(final
String indexName = resultSet.getString("index_name");
boolean isUnique = resultSet.getBoolean("is_unique");
Collection<IndexMetaData> indexMetaDatas = result.getOrDefault(schemaName, LinkedHashMultimap.create()).get(tableName);
if (null == indexMetaDatas || indexMetaDatas.isEmpty()) {
if (indexMetaDatas.isEmpty()) {
continue;
}
Optional<IndexMetaData> indexMetaData = indexMetaDatas.stream().filter(each -> each.getName().equals(indexName)).findFirst();
Expand Down

0 comments on commit 897f2ca

Please sign in to comment.