gortiz commented on code in PR #10835:
URL: https://github.com/apache/pinot/pull/10835#discussion_r1218389670
##########
pinot-server/src/main/java/org/apache/pinot/server/api/resources/SegmentMetadataFetcher.java:
##########
@@ -152,6 +155,24 @@ private static Map<String, String>
getColumnIndexes(DataSource dataSource) {
indexStatus.put(JSON_INDEX, INDEX_AVAILABLE);
}
+ if (Objects.isNull(dataSource.getH3Index())) {
+ indexStatus.put(H3_INDEX, INDEX_NOT_AVAILABLE);
+ } else {
+ indexStatus.put(H3_INDEX, INDEX_AVAILABLE);
+ }
+
+ if (Objects.isNull(dataSource.getFSTIndex())) {
+ indexStatus.put(FST_INDEX, INDEX_NOT_AVAILABLE);
+ } else {
+ indexStatus.put(FST_INDEX, INDEX_AVAILABLE);
+ }
+
+ if (Objects.isNull(dataSource.getTextIndex())) {
+ indexStatus.put(TEXT_INDEX, INDEX_NOT_AVAILABLE);
+ } else {
+ indexStatus.put(TEXT_INDEX, INDEX_AVAILABLE);
+ }
Review Comment:
Yeah, the solution from @klsince is more generic (and easier to read!). I
don't mind if we decide to do that in another PR, but I think it is something
we should to soon or otherwise we are going to forget about that until we find
another index that is not added 😆
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]