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


##########
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/DictionaryIndexConfig.java:
##########
@@ -21,29 +21,42 @@
 
 import com.fasterxml.jackson.annotation.JsonCreator;
 import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.Preconditions;
 import java.util.Objects;
 import javax.annotation.Nullable;
 import org.apache.pinot.spi.config.table.IndexConfig;
+import org.apache.pinot.spi.config.table.Intern;
 
 
 public class DictionaryIndexConfig extends IndexConfig {
 
-  public static final DictionaryIndexConfig DEFAULT = new 
DictionaryIndexConfig(false, false, false);
-  public static final DictionaryIndexConfig DISABLED = new 
DictionaryIndexConfig(true, false, false);
+  public static final DictionaryIndexConfig DEFAULT = new 
DictionaryIndexConfig(false, false, false, Intern.DISABLED);
+  public static final DictionaryIndexConfig DISABLED = new 
DictionaryIndexConfig(true, false, false, Intern.DISABLED);
 
   private final boolean _onHeap;
   private final boolean _useVarLengthDictionary;
+  private final Intern _intern;
 
-  public DictionaryIndexConfig(Boolean onHeap, @Nullable Boolean 
useVarLengthDictionary) {
-    this(false, onHeap, useVarLengthDictionary);
+  public DictionaryIndexConfig(Boolean onHeap, @Nullable Boolean 
useVarLengthDictionary, Intern intern) {

Review Comment:
   In order to keep backward compatibility (and maybe reduce the number of 
changes), can you add a constructor with the older signature?
   
   ```
   public DictionaryIndexConfig(Boolean onHeap, @Nullable Boolean 
useVarLengthDictionary) {
     this(onHeap, useVarLengthDictionary, null);
   }
   ```



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