[ https://issues.apache.org/jira/browse/HIVE-25977?focusedWorklogId=737453&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-737453 ]
ASF GitHub Bot logged work on HIVE-25977: ----------------------------------------- Author: ASF GitHub Bot Created on: 07/Mar/22 10:52 Start Date: 07/Mar/22 10:52 Worklog Time Spent: 10m Work Description: klcopp commented on a change in pull request #2971: URL: https://github.com/apache/hive/pull/2971#discussion_r820588551 ########## File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java ########## @@ -469,11 +469,11 @@ private boolean isFileBelowWatermark(FileStatus child, long highWatermark, long } if (fn.startsWith(AcidUtils.BASE_PREFIX)) { ParsedBaseLight b = ParsedBaseLight.parseBase(p); - return b.getWriteId() <= highWatermark; + return b.getWriteId() < highWatermark; } if (fn.startsWith(AcidUtils.DELTA_PREFIX) || fn.startsWith(AcidUtils.DELETE_DELTA_PREFIX)) { ParsedDeltaLight d = ParsedDeltaLight.parse(p); - return d.getMaxWriteId() <= highWatermark; Review comment: I think you still need the <=, especially because CQ_COMMIT_TIME might be NULL Edit: [example](https://github.com/apache/hive/pull/2971#discussion_r817789462) -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 737453) Time Spent: 1h 10m (was: 1h) > Enhance Compaction Cleaner to skip when there is nothing to do #2 > ----------------------------------------------------------------- > > Key: HIVE-25977 > URL: https://issues.apache.org/jira/browse/HIVE-25977 > Project: Hive > Issue Type: Bug > Reporter: Zoltan Haindrich > Assignee: Zoltan Haindrich > Priority: Major > Labels: pull-request-available > Time Spent: 1h 10m > Remaining Estimate: 0h > > initially this was just an addendum to the original patch ; but got delayed > and altered - so it should have its own ticket -- This message was sent by Atlassian Jira (v8.20.1#820001)