You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "saurabhd336 (via GitHub)" <gi...@apache.org> on 2023/04/20 12:07:02 UTC

[GitHub] [pinot] saurabhd336 commented on a diff in pull request #10623: Utility to convert table config into updated format

saurabhd336 commented on code in PR #10623:
URL: https://github.com/apache/pinot/pull/10623#discussion_r1172490347


##########
pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/index/AbstractIndexType.java:
##########
@@ -62,6 +71,39 @@ public IndexReaderFactory<IR> getReaderFactory() {
     return _readerFactory;
   }
 
+  public void convertToNewFormat(TableConfig tableConfig, Schema schema) {
+    Map<String, C> deserialize = getConfig(tableConfig, schema);
+    for (Map.Entry<String, C> entry : deserialize.entrySet()) {
+      boolean fieldConfigFound = false;
+      List<FieldConfig> fieldConfigList = tableConfig.getFieldConfigList() == null

Review Comment:
   Seems redundant. Can we create a map<columnName, FieldConfigList> _map and while looping over `deserialize` map, get the correct fieldConfigList for that column?
   



-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org