Jackie-Jiang commented on code in PR #12164: URL: https://github.com/apache/pinot/pull/12164#discussion_r1434553727
########## pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/store/StarTreeIndexReader.java: ########## @@ -121,7 +124,9 @@ private void mapBufferEntries(int starTreeId, _dataBuffer, ByteOrder.BIG_ENDIAN)); } // Load metric (function-column pair) forward indexes - for (AggregationFunctionColumnPair functionColumnPair : starTreeMetadata.getFunctionColumnPairs()) { + TreeMap<AggregationFunctionColumnPair, AggregationSpec> deduplicatedAggregationSpecs = Review Comment: Within the in-memory loaded metadata (not the on disk copy which might already be generated) and the builder config, we can always keep the stored aggregates, and the query time lookup should also be converted to stored type first. This way it should work as expected. I wouldn't expect user trying to match the segment metadata with table config, but +1 on logging warnings when the non-stored aggregates are provided within the table config -- 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