Skip to content

Commit

Permalink
[AMORO-1924]Fix Iceberg tables undergoing major optimizing repeatedly (
Browse files Browse the repository at this point in the history
…#1976)

fix full FullOptimizing bug

Co-authored-by: zhengliu <zhengliu@gaojihealth.com>
  • Loading branch information
celltobig and zhengliu authored Sep 14, 2023
1 parent 3db91c1 commit 6da0068
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ private void addDelete(ContentFile<?> delete) {
@Override
public boolean isNecessary() {
if (necessary == null) {
necessary = isFullNecessary() || isMajorNecessary() || isMinorNecessary();
if (isFullOptimizing()) {
necessary = isFullNecessary();
} else {
necessary = isMajorNecessary() || isMinorNecessary();
}
LOG.debug("{} necessary = {}, {}", name(), necessary, this);
}
return necessary;
Expand Down

0 comments on commit 6da0068

Please sign in to comment.