backport https://github.com/apache/doris/pull/34672 <!--Describe your changes.--> ## Further comments If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
This commit is contained in:
@ -755,7 +755,7 @@ public class StatisticsUtil {
|
||||
}
|
||||
|
||||
protected static SessionVariable findConfigFromGlobalSessionVar(String varName) throws Exception {
|
||||
SessionVariable sessionVariable = VariableMgr.newSessionVariable();
|
||||
SessionVariable sessionVariable = VariableMgr.getDefaultSessionVariable();
|
||||
VariableExpr variableExpr = new VariableExpr(varName, SetType.GLOBAL);
|
||||
VariableMgr.getValue(sessionVariable, variableExpr);
|
||||
return sessionVariable;
|
||||
|
||||
Reference in New Issue
Block a user