gortiz commented on code in PR #12223:
URL: https://github.com/apache/pinot/pull/12223#discussion_r1445860401


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/loader/IndexLoadingConfig.java:
##########
@@ -233,8 +235,14 @@ private void extractFromTableConfigAndSchema(TableConfig 
tableConfig, @Nullable
     }
 
     List<String> onHeapDictionaryColumns = 
indexingConfig.getOnHeapDictionaryColumns();
+    Map<String, OnHeapDictionaryConfig> onHeapDictionaryConfigMap = 
indexingConfig.getOnHeapDictionaryConfigs();
     if (onHeapDictionaryColumns != null) {
-      _onHeapDictionaryColumns.addAll(onHeapDictionaryColumns);
+      for (String col : onHeapDictionaryColumns) {
+        _onHeapDictionaryColumns.add(col);
+        if (onHeapDictionaryConfigMap != null && 
onHeapDictionaryConfigMap.containsKey(col)) {
+          _onHeapDictionaryConfigs.put(col, 
onHeapDictionaryConfigMap.get(col));

Review Comment:
   As said in IndexingConfig comment, I recommend to do not support this 
feature using the old syntax. By doing so we won't need to modify this part of 
the code.



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

Reply via email to