Skip to content

Commit

Permalink
[BugFix] Adjust session variable cbo_cte_reuse_rate to enable tpcds-4…
Browse files Browse the repository at this point in the history
…7 cte reuse (StarRocks#13247)
  • Loading branch information
Youngwb authored Nov 15, 2022
1 parent 003c97c commit a30d34f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ public class SessionVariable implements Serializable, Writable, Cloneable {
public static final String CBO_CTE_REUSE = "cbo_cte_reuse";
public static final String CBO_CTE_REUSE_RATE = "cbo_cte_reuse_rate";
public static final String CBO_CTE_MAX_LIMIT = "cbo_cte_max_limit";
public static final String CBO_CTE_REUSE_RATE_V2 = "cbo_cte_reuse_rate_v2";
public static final String ENABLE_SQL_DIGEST = "enable_sql_digest";
public static final String CBO_MAX_REORDER_NODE = "cbo_max_reorder_node";
public static final String CBO_PRUNE_SHUFFLE_COLUMN_RATE = "cbo_prune_shuffle_column_rate";
Expand Down Expand Up @@ -510,8 +511,9 @@ public class SessionVariable implements Serializable, Writable, Cloneable {
@VarAttr(name = CBO_CTE_REUSE)
private boolean cboCteReuse = true;

@VarAttr(name = CBO_CTE_REUSE_RATE, flag = VariableMgr.INVISIBLE)
private double cboCTERuseRatio = 1.2;
@VarAttr(name = CBO_CTE_REUSE_RATE_V2, flag = VariableMgr.INVISIBLE, alias = CBO_CTE_REUSE_RATE,
show = CBO_CTE_REUSE_RATE)
private double cboCTERuseRatio = 1.15;

@VarAttr(name = CBO_CTE_MAX_LIMIT, flag = VariableMgr.INVISIBLE)
private int cboCTEMaxLimit = 10;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public void testRatioQ59() throws Exception {
testCTE(Q59);
}

//@Test
@Test
public void testRatioQ64() throws Exception {
testCTE(Q64);
}
Expand Down

0 comments on commit a30d34f

Please sign in to comment.