walterddr commented on code in PR #9733: URL: https://github.com/apache/pinot/pull/9733#discussion_r1015660598
########## pinot-server/src/main/java/org/apache/pinot/server/api/resources/SegmentMetadataFetcher.java: ########## @@ -108,48 +111,55 @@ private static Map<String, Map<String, String>> getIndexesForSegmentColumns(Segm * Helper to loop through column datasource to create a index map as follows for each column: * {<"bloom-filter", "YES">, <"dictionary", "NO">} */ - private static Map<String, String> getColumnIndexes(DataSource dataSource) { + private static Map<String, String> getColumnIndexes(DataSource dataSource, ColumnMetadata columnMetadata) { Map<String, String> indexStatus = new LinkedHashMap<>(); if (Objects.isNull(dataSource.getBloomFilter())) { indexStatus.put(BLOOM_FILTER, INDEX_NOT_AVAILABLE); } else { - indexStatus.put(BLOOM_FILTER, INDEX_AVAILABLE); + Long indexSize = columnMetadata.getIndexSizeMap().get(ColumnIndexType.BLOOM_FILTER); + indexStatus.put(BLOOM_FILTER, indexSize == null ? INDEX_AVAILABLE : String.valueOf(indexSize)); } if (Objects.isNull(dataSource.getDictionary())) { indexStatus.put(DICTIONARY, INDEX_NOT_AVAILABLE); } else { - indexStatus.put(DICTIONARY, INDEX_AVAILABLE); + Long indexSize = columnMetadata.getIndexSizeMap().get(ColumnIndexType.DICTIONARY); Review Comment: we have to follow up with this in a separate PR. as this API is also used by the UI and it is currently not rendering the numbers correctly. -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org