siddharthteotia commented on a change in pull request #6876:
URL: https://github.com/apache/incubator-pinot/pull/6876#discussion_r626104265



##########
File path: 
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/creator/SegmentGeneratorConfig.java
##########
@@ -262,6 +267,19 @@ private void 
extractH3IndexConfigsFromTableConfig(TableConfig tableConfig) {
     }
   }
 
+  private void 
extractNoDictionaryColumnCompressionCodecConfigsFromTableConfig(TableConfig 
tableConfig) {
+    List<String> rawIndexColumns = new ArrayList<>();
+    List<FieldConfig> fieldConfigList = tableConfig.getFieldConfigList();
+    if (fieldConfigList != null) {
+      for (FieldConfig fieldConfig : fieldConfigList) {
+        if (fieldConfig.getEncodingType() == FieldConfig.EncodingType.RAW && 
fieldConfig.getNoDictionaryColumnCompressorCodec() != null) {
+          rawIndexColumns.add(fieldConfig.getName());
+        }
+      }
+    }
+    setRawIndexColumnCompressionType(tableConfig.getIndexingConfig(), 
rawIndexColumns);

Review comment:
       This doesn't seem right. At line 197 it will check if the map is null or 
not. If null, then we won't be able to set ZSTD/SNAPPY coming via FieldConfig 
(from this function). Right ?




-- 
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.

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

Reply via email to