Skip to content

Commit

Permalink
remove bounder session var
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Nov 27, 2023
1 parent b21e046 commit 6360b29
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,6 @@ public class SessionVariable implements Serializable, Writable {
SHOW_HIDDEN_COLUMNS
);

public static final String SHUFFLE_FACTOR_LOWER_BOUND = "shuffle_factor_lower_bound";

@VariableMgr.VarAttr(name = SHUFFLE_FACTOR_LOWER_BOUND)
public double shuffleFactorLowerBound = 0.03;

public static final String ENABLE_STATS = "enable_stats";
/**
* If set false, user couldn't submit analyze SQL and FE won't allocate any related resources.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.apache.doris.nereids.stats.StatsMathUtil;
import org.apache.doris.nereids.trees.expressions.Expression;
import org.apache.doris.nereids.trees.expressions.Slot;
import org.apache.doris.qe.ConnectContext;

import java.text.DecimalFormat;
import java.util.HashMap;
Expand Down Expand Up @@ -132,9 +131,6 @@ public double computeSize() {
public double dataSizeFactor() {
double lowerBound = 0.03;
double upperBound = 0.07;
if (ConnectContext.get() != null) {
lowerBound = ConnectContext.get().getSessionVariable().shuffleFactorLowerBound;
}
return Math.min(Math.max(computeTupleSize() / K_BYTES, lowerBound), upperBound);
}

Expand Down

0 comments on commit 6360b29

Please sign in to comment.