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: [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]