siddharthteotia commented on code in PR #9333: URL: https://github.com/apache/pinot/pull/9333#discussion_r988806062
########## pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/loader/defaultcolumn/BaseDefaultColumnHandler.java: ########## @@ -388,8 +416,40 @@ protected boolean createColumnV1Indices(String column) return true; } + /** + * Validates the compatibility of the indexes if the column has the forward index disabled. Throws exceptions due to + * compatibility mismatch. The checks performed are: + * - Validate dictionary is enabled. + * - Validate inverted index is enabled. + * - Validate that either no range index exists for column or the range index version is at least 2 and isn't a + * multi-value column (since multi-value defaults to index v1). + */ + protected void validateForwardIndexDisabledConfigsIfPresent(String column, boolean forwardIndexDisabled) { Review Comment: Why is this function needed here ? Table config validator should catch the unsupported combinations / mandatory conditions since anyone who wants to toggle the flag and then leverage reload path has to first update the table config successfully on the controller (which should internally use validator) -- 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