somandal commented on code in PR #9333: URL: https://github.com/apache/pinot/pull/9333#discussion_r966202586
########## pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/creator/impl/SegmentColumnarIndexCreator.java: ########## @@ -196,6 +204,15 @@ public void init(SegmentGeneratorConfig segmentCreationSpec, SegmentIndexCreatio Preconditions.checkState(dictEnabledColumn || !invertedIndexColumns.contains(columnName), "Cannot create inverted index for raw index column: %s", columnName); + boolean forwardIndexDisabled = forwardIndexDisabledColumns.contains(columnName); + if (forwardIndexDisabled) { + Preconditions.checkState(dictEnabledColumn && invertedIndexColumns.contains(columnName) + && !columnIndexCreationInfo.isSorted() && (!rangeIndexColumns.contains(columnName) + || rangeIndexVersion == BitSlicedRangeIndexCreator.VERSION), String.format("Cannot disable forward " + + "index for column: %s without dictionary and inverted index or which is sorted or which has range " + + "index with version < 2", columnName)); Review Comment: good point, done! -- 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