harold-kfuse commented on a change in pull request #8350:
URL: https://github.com/apache/pinot/pull/8350#discussion_r826382774
##########
File path:
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/realtime/converter/RealtimeSegmentConverter.java
##########
@@ -94,14 +93,14 @@ public void build(@Nullable SegmentVersion segmentVersion,
ServerMetrics serverM
}
if (_noDictionaryColumns != null) {
genConfig.setRawIndexCreationColumns(_noDictionaryColumns);
- Map<String, ChunkCompressionType> columnToCompressionType = new
HashMap<>();
for (String column : _noDictionaryColumns) {
FieldSpec fieldSpec = _dataSchema.getFieldSpecFor(column);
+ // Compression type is already configured in the constructor of
genConfig.
+ // Only update metrics compression type.
if (fieldSpec.getFieldType().equals(FieldSpec.FieldType.METRIC)) {
- columnToCompressionType.put(column,
ChunkCompressionType.PASS_THROUGH);
+ genConfig.setRawIndexCompressionType(column,
ChunkCompressionType.PASS_THROUGH);
}
}
Review comment:
Thanks. You mean I can delete this whole block? (line 96-103)?
--
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]