Skip to content

Commit

Permalink
fixed potential for infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
datomo committed Dec 13, 2024
1 parent 556a47e commit 76bf0fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import javax.annotation.Nullable;
import lombok.extern.slf4j.Slf4j;
import org.polypheny.db.algebra.AlgCollation;
import org.polypheny.db.algebra.AlgDistribution;
Expand All @@ -57,7 +58,6 @@
import org.polypheny.db.rex.RexNode;
import org.polypheny.db.rex.RexTableIndexRef.AlgTableRef;
import org.polypheny.db.util.ImmutableBitSet;
import javax.annotation.Nullable;


/**
Expand Down Expand Up @@ -290,7 +290,7 @@ public AlgOptCost getCumulativeCost( AlgNode alg ) {
} catch ( JaninoRelMetadataProvider.NoHandler e ) {
cumulativeCostHandler = revise( e.algClass, BuiltInMetadata.CumulativeCost.DEF );
} catch ( CyclicMetadataException e ) {
alg.getCluster().getPlanner().getCostFactory().makeInfiniteCost();
return alg.getCluster().getPlanner().getCostFactory().makeInfiniteCost();
}
}
}
Expand Down

0 comments on commit 76bf0fc

Please sign in to comment.