mcvsubbu commented on a change in pull request #4954: Support schema evolution for consuming segments URL: https://github.com/apache/incubator-pinot/pull/4954#discussion_r368324340
########## File path: pinot-core/src/main/java/org/apache/pinot/core/indexsegment/mutable/MutableSegmentImpl.java ########## @@ -252,6 +258,16 @@ public long getMaxTime() { return _maxTime; } + public void addExtraColumns(Schema newSchema, + Map<String, BaseDefaultColumnHandler.DefaultColumnAction> defaultColumnActionMap) { + defaultColumnActionMap.forEach(((columnName, defaultColumnAction) -> { + if (defaultColumnAction.isAddAction() && !newSchema.getFieldSpecFor(columnName).isVirtualColumn()) { + _newlyAddedColumnsFieldMap.put(columnName, newSchema.getFieldSpecFor(columnName)); + } + })); + _logger.debug("Newly added columns: " + _newlyAddedColumnsFieldMap.toString()); Review comment: Should be info log ---------------------------------------------------------------- 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 With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org