This is an automated email from the ASF dual-hosted git repository.
lijibing pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 3a21653c82a Use defaultSessionVariable instead of clone a new one.
(#34672) (#34747)
3a21653c82a is described below
commit 3a21653c82a57628e7a195d035efbbd3d3904af4
Author: Jibing-Li <[email protected]>
AuthorDate: Mon May 13 14:15:15 2024 +0800
Use defaultSessionVariable instead of clone a new one. (#34672) (#34747)
---
.../src/main/java/org/apache/doris/statistics/util/StatisticsUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/statistics/util/StatisticsUtil.java
b/fe/fe-core/src/main/java/org/apache/doris/statistics/util/StatisticsUtil.java
index 4c254b1895e..71c5d96e2fb 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/statistics/util/StatisticsUtil.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/statistics/util/StatisticsUtil.java
@@ -845,7 +845,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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]