samarthjain commented on a change in pull request #11008:
URL: https://github.com/apache/druid/pull/11008#discussion_r596220954
##########
File path:
sql/src/main/java/org/apache/druid/sql/calcite/schema/DruidSchema.java
##########
@@ -702,13 +702,14 @@ private static RowSignature analysisToRowSignature(final
SegmentAnalysis analysi
Map<SegmentId, AvailableSegmentMetadata> getSegmentMetadataSnapshot()
{
- final Map<SegmentId, AvailableSegmentMetadata> segmentMetadata = new
HashMap<>();
synchronized (lock) {
+ final Map<SegmentId, AvailableSegmentMetadata> segmentMetadata =
Maps.newHashMapWithExpectedSize(
+ segmentMetadataInfo.values().size());
Review comment:
Thanks for pointing that out. Fixed.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]