klsince commented on code in PR #15841: URL: https://github.com/apache/pinot/pull/15841#discussion_r2096532399
########## pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/startree/AggregationSpec.java: ########## @@ -82,6 +82,15 @@ public Map<String, Object> getFunctionParameters() { return _functionParameters; } + /// Returns `true` if the given [AggregationSpec] does not match the current one, in which case the star-tree index + /// needs to be updated, {@code false} otherwise. + /// - Update star-tree if the function parameters or compression codec changes. + /// - Do not update star-tree when index version or config changes to avoid rebuilding all the star-trees when the + /// default index setting changes. This is consistent with the behavior of forward indexes. + public boolean shouldModifyStarTree(AggregationSpec that) { Review Comment: I see. Actually, I just realized that `config changes` as you mentioned in the comment must be these three configs: "targetDocsPerChunk, targetMaxChunkSize and deriveNumDocsPerChunk". It may help to add in the comment how to force the version/config changes if wanted. -- 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