This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new eb250bca5c2 [fix](set) fix error message when set a session only
variable (#27554)
eb250bca5c2 is described below
commit eb250bca5c21bf98f1a8b7b407996a0bd5230d30
Author: Yulei-Yang <[email protected]>
AuthorDate: Fri Nov 24 21:48:16 2023 +0800
[fix](set) fix error message when set a session only variable (#27554)
---
fe/fe-core/src/main/java/org/apache/doris/qe/VariableMgr.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/VariableMgr.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/VariableMgr.java
index 03833c01dc0..917a80ac5a9 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/VariableMgr.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/VariableMgr.java
@@ -258,7 +258,7 @@ public class VariableMgr {
throw new
DdlException(ErrorCode.ERR_VARIABLE_IS_READONLY.formatErrorMsg(setVar.getVariable()));
}
if (setVar.getType() == SetType.GLOBAL && (flag & SESSION_ONLY) != 0) {
- throw new
DdlException(ErrorCode.ERR_GLOBAL_VARIABLE.formatErrorMsg(setVar.getVariable()));
+ throw new
DdlException(ErrorCode.ERR_LOCAL_VARIABLE.formatErrorMsg(setVar.getVariable()));
}
if (setVar.getType() != SetType.GLOBAL && (flag & GLOBAL) != 0) {
throw new
DdlException(ErrorCode.ERR_GLOBAL_VARIABLE.formatErrorMsg(setVar.getVariable()));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]