virajjasani commented on code in PR #2209: URL: https://github.com/apache/phoenix/pull/2209#discussion_r2183908884
########## phoenix-core-server/src/main/java/org/apache/phoenix/coprocessor/CompactionScanner.java: ########## @@ -205,7 +212,15 @@ public CompactionScanner(RegionCoprocessorEnvironment env, emptyCFStore = familyCount == 1 || columnFamilyName.equals(Bytes.toString(emptyCF)) || localIndex; - isCDCIndex = table != null ? CDCUtil.isCDCIndex(table) : false; + this.table = table; + isCDCIndex = CDCUtil.isCDCIndex(table); Review Comment: It is used to ensure the cells of CDC index that are in the maxLookback window are always retained ``` if (isCDCIndex) { return retainCellsForCDCIndex(result, retainedCells); } ``` -- 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: issues-unsubscr...@phoenix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org