raghavyadav01 commented on code in PR #15526:
URL: https://github.com/apache/pinot/pull/15526#discussion_r2074205529
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/loader/ForwardIndexHandler.java:
##########
@@ -411,7 +412,8 @@ private boolean shouldChangeDictIdCompressionType(String
column, SegmentDirector
// The compression type for an existing segment can only be determined by
reading the forward index header.
ColumnMetadata existingColMetadata =
_segmentDirectory.getSegmentMetadata().getColumnMetadataFor(column);
DictIdCompressionType existingCompressionType;
- try (ForwardIndexReader<?> fwdIndexReader =
ForwardIndexType.read(segmentReader, existingColMetadata)) {
+ try (ForwardIndexReader<?> fwdIndexReader =
ForwardIndexType.read(segmentReader, _fieldIndexConfigs.get(column),
Review Comment:
What I mean is - current ForwardIndexHandler only manages updates for
standard forward indexes and doesn't support custom logic(may be a custom
config change) for custom forward index writers. Since this PR is adding
support for custom forward index writers, we should also consider allowing
users to specify their own custom ForwardIndexHandler class, similar to how
they can specify custom forward index writers and readers.
--
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]