morrySnow commented on code in PR #26655:
URL: https://github.com/apache/doris/pull/26655#discussion_r1387790448
##########
fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java:
##########
@@ -301,6 +317,7 @@ public void init() {
returnRows = 0;
isKilled = false;
sessionVariable = VariableMgr.newSessionVariable();
+ userVars = new ConcurrentHashMap<>();
Review Comment:
why concurrentHashMap?
##########
fe/fe-core/src/main/java/org/apache/doris/qe/ConnectContext.java:
##########
@@ -450,6 +467,64 @@ public void setEnv(Env env) {
defaultCatalog = env.getInternalCatalog().getName();
}
+ public void setUserVar(SetVar setVar) {
+ userVars.put(setVar.getVariable().toLowerCase(), setVar.getResult());
+ }
+
+ public @Nullable Literal getLiteralForUserVar(String varName) {
Review Comment:
varName always lower case?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]