Skip to content

Commit

Permalink
sessionvar
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Sep 11, 2024
1 parent d1b8292 commit 0ba6619
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ public List<PlanPostProcessor> getProcessors() {
builder.add(new MergeProjectPostProcessor());
builder.add(new RecomputeLogicalPropertiesProcessor());
builder.add(new AddOffsetIntoDistribute());
builder.add(new ProjectAggregateExpressionsForCse());
if (cascadesContext.getConnectContext().getSessionVariable().enableAggregateCse) {
builder.add(new ProjectAggregateExpressionsForCse());
}
builder.add(new CommonSubExpressionOpt());
// DO NOT replace PLAN NODE from here
if (cascadesContext.getConnectContext().getSessionVariable().pushTopnToAgg) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,9 @@ public class SessionVariable implements Serializable, Writable {
@VariableMgr.VarAttr(name = EXPAND_RUNTIME_FILTER_BY_INNER_JION)
public boolean expandRuntimeFilterByInnerJoin = true;

@VariableMgr.VarAttr(name = "enable_aggregate_cse", needForward = true)
public boolean enableAggregateCse = true;

@VariableMgr.VarAttr(name = JDBC_CLICKHOUSE_QUERY_FINAL, needForward = true,
description = {"是否在查询 ClickHouse JDBC 外部表时,对查询 SQL 添加 FINAL 关键字。",
"Whether to add the FINAL keyword to the query SQL when querying ClickHouse JDBC external tables."})
Expand Down

0 comments on commit 0ba6619

Please sign in to comment.