deepthi912 commented on code in PR #13789: URL: https://github.com/apache/pinot/pull/13789#discussion_r1720860966
########## pinot-core/src/main/java/org/apache/pinot/core/data/manager/BaseTableDataManager.java: ########## @@ -1013,6 +1013,22 @@ public boolean tryLoadExistingSegment(SegmentZKMetadata zkMetadata, IndexLoading } } + boolean needReloadSegment(SegmentZKMetadata zkMetadata, IndexLoadingConfig indexLoadingConfig) + throws Exception { + String segmentName = zkMetadata.getSegmentName(); + SegmentDirectory segmentDirectory = + tryInitSegmentDirectory(segmentName, String.valueOf(zkMetadata.getCrc()), indexLoadingConfig); + try { + Schema schema = indexLoadingConfig.getSchema(); + //if re processing or reload is needed on a segment then return true + return ImmutableSegmentLoader.needPreprocess(segmentDirectory, indexLoadingConfig, schema); + } catch (Exception e) { Review Comment: Done -- 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