kriti-sc commented on a change in pull request #6873: URL: https://github.com/apache/incubator-pinot/pull/6873#discussion_r640132726
########## File path: pinot-server/src/main/java/org/apache/pinot/server/api/resources/SegmentMetadataFetcher.java ########## @@ -128,8 +139,50 @@ public static String getSegmentMetadata(SegmentDataManager segmentDataManager, L indexStatus.put(RANGE_INDEX, INDEX_AVAILABLE); } + if (Objects.isNull(columnIndexContainer.getJsonIndex())){ + indexStatus.put(JSON_INDEX, INDEX_NOT_AVAILABLE); + } else { + indexStatus.put(JSON_INDEX, INDEX_AVAILABLE); + } + columnIndexMap.put(entry.getKey(), indexStatus); } return columnIndexMap; } + + /** + * Get the JSON object containing star tree index details for a segment. + */ + @Nullable + private static List<Map<String, Object>> getStarTreeIndexesForSegment(SegmentDataManager segmentDataManager) { + List<StarTreeV2> starTrees = segmentDataManager.getSegment().getStarTrees(); + return starTrees != null ? getStartreeIndexes(starTrees) : null; + } + + /** + * Helper to loop over star trees of a segment to create a map containing star tree details. + */ + private static List<Map<String, Object>> getStartreeIndexes(List<StarTreeV2> starTrees){ Review comment: Fixed this. -- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org