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 0d401426695c8a..36a4998947c7ad 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 @@ -231,7 +231,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"; @@ -839,9 +838,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; @@ -2186,14 +2182,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 95bd9db1b2568a..0e2d6ba9f81fa1 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 @@ -940,7 +940,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()) { @@ -1722,7 +1721,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()) {