This is an automated email from the ASF dual-hosted git repository.
lijibing pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 69da39b43de [improvement](statistics)Use defaultSessionVariable
instead of clone a new one. (#34672) (#35531)
69da39b43de is described below
commit 69da39b43deabcf7917cae5cff87ff7e1e4a090c
Author: Jibing-Li <[email protected]>
AuthorDate: Tue May 28 17:19:38 2024 +0800
[improvement](statistics)Use defaultSessionVariable instead of clone a new
one. (#34672) (#35531)
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 [[email protected]](mailto:[email protected]) by explaining why
you chose the solution you did and what alternatives you considered,
etc...
---
.../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 374d6f7d985..35037bb7e27 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
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]