From b246c15739f29aa118a9e3e4d1590a362602482d Mon Sep 17 00:00:00 2001 From: liuyehcf <1559500551@qq.com> Date: Tue, 31 Oct 2023 12:55:39 +0800 Subject: [PATCH] [Refactor] Remove unused session variable 'profile_limit_fold' (#33997) Signed-off-by: liuyehcf <1559500551@qq.com> (cherry picked from commit 8c23d3ee20af4206ca500baf3c197e22fce5c70f) --- .../main/java/com/starrocks/qe/SessionVariable.java | 12 ------------ .../src/main/java/com/starrocks/qe/StmtExecutor.java | 2 -- 2 files changed, 14 deletions(-) diff --git a/fe/fe-core/src/main/java/com/starrocks/qe/SessionVariable.java b/fe/fe-core/src/main/java/com/starrocks/qe/SessionVariable.java index 82633b72283b0..46312cb740f22 100644 --- a/fe/fe-core/src/main/java/com/starrocks/qe/SessionVariable.java +++ b/fe/fe-core/src/main/java/com/starrocks/qe/SessionVariable.java @@ -226,7 +226,6 @@ public class SessionVariable implements Serializable, Writable, Cloneable { public static final String PROFILE_TIMEOUT = "profile_timeout"; public static final String RUNTIME_PROFILE_REPORT_INTERVAL = "runtime_profile_report_interval"; - public static final String PROFILE_LIMIT_FOLD = "profile_limit_fold"; public static final String PIPELINE_PROFILE_LEVEL = "pipeline_profile_level"; public static final String ENABLE_ASYNC_PROFILE = "enable_async_profile"; @@ -822,9 +821,6 @@ public static MaterializedViewRewriteMode parse(String str) { @VariableMgr.VarAttr(name = RUNTIME_PROFILE_REPORT_INTERVAL) private int runtimeProfileReportInterval = 10; - @VariableMgr.VarAttr(name = PROFILE_LIMIT_FOLD, flag = VariableMgr.INVISIBLE) - private boolean profileLimitFold = true; - @VariableMgr.VarAttr(name = PIPELINE_PROFILE_LEVEL) private int pipelineProfileLevel = 1; @@ -2112,14 +2108,6 @@ public int getRuntimeProfileReportInterval() { return runtimeProfileReportInterval; } - public void setProfileLimitFold(boolean profileLimitFold) { - this.profileLimitFold = profileLimitFold; - } - - public boolean isProfileLimitFold() { - return profileLimitFold; - } - public void setPipelineProfileLevel(int pipelineProfileLevel) { this.pipelineProfileLevel = pipelineProfileLevel; } diff --git a/fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java b/fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java index bdc8e6ae767eb..1ae47106e160b 100644 --- a/fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java +++ b/fe/fe-core/src/main/java/com/starrocks/qe/StmtExecutor.java @@ -938,7 +938,6 @@ private void handleQueryStmt(ExecPlan execPlan) throws Exception { context.getSessionVariable().setEnableProfile(true); context.getSessionVariable().setEnableAsyncProfile(false); context.getSessionVariable().setPipelineProfileLevel(1); - context.getSessionVariable().setProfileLimitFold(false); } else if (isSchedulerExplain) { // Do nothing. } else if (parsedStmt.isExplain()) { @@ -1694,7 +1693,6 @@ public void handleDMLStmt(ExecPlan execPlan, DmlStmt stmt) throws Exception { context.getSessionVariable().setEnableProfile(true); context.getSessionVariable().setEnableAsyncProfile(false); context.getSessionVariable().setPipelineProfileLevel(1); - context.getSessionVariable().setProfileLimitFold(false); } else if (isSchedulerExplain) { // Do nothing. } else if (stmt.isExplain()) {