From 207bc53b0661be2e53ee29931313b56c09baaf4d Mon Sep 17 00:00:00 2001 From: yiguolei <676222867@qq.com> Date: Sun, 25 Jun 2023 10:36:20 +0800 Subject: [PATCH] [functionpushdown](performance) move function pushdown as default false since its performance is not good (#21111) set enable function pushdown default to false. enable it in fuzzy mode to test this feature. We should remove function pushdown in the future since we already have common expr pushdown. Co-authored-by: yiguolei --- .../src/main/java/org/apache/doris/qe/SessionVariable.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java index bb72439de8..5025eb669b 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java @@ -759,8 +759,8 @@ public class SessionVariable implements Serializable, Writable { needForward = true, expType = ExperimentalType.EXPERIMENTAL) public boolean enableSingleReplicaInsert = false; - @VariableMgr.VarAttr(name = ENABLE_FUNCTION_PUSHDOWN) - public boolean enableFunctionPushdown = true; + @VariableMgr.VarAttr(name = ENABLE_FUNCTION_PUSHDOWN, fuzzy = true) + public boolean enableFunctionPushdown = false; @VariableMgr.VarAttr(name = FORBID_UNKNOWN_COLUMN_STATS) public boolean forbidUnknownColStats = false; @@ -995,8 +995,10 @@ public class SessionVariable implements Serializable, Writable { int randomInt = random.nextInt(4); if (randomInt % 2 == 0) { this.rewriteOrToInPredicateThreshold = 100000; + this.enableFunctionPushdown = false; } else { this.rewriteOrToInPredicateThreshold = 2; + this.enableFunctionPushdown = true; } this.runtimeFilterType = 1 << randomInt; switch (randomInt) {