This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 1aa006c80f1a0c27cb00cbf7776c5533c68947aa
Author: Dongyang Li <[email protected]>
AuthorDate: Wed Jan 24 17:55:10 2024 +0800

    [fix](ci) add single quote to the value of the session variables when 
setting it (#30295)
    
    Co-authored-by: stephen <[email protected]>
---
 regression-test/pipeline/common/doris-utils.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/regression-test/pipeline/common/doris-utils.sh 
b/regression-test/pipeline/common/doris-utils.sh
index 327f00beac1..df575f59957 100644
--- a/regression-test/pipeline/common/doris-utils.sh
+++ b/regression-test/pipeline/common/doris-utils.sh
@@ -362,7 +362,8 @@ function reset_doris_session_variables() {
     query_port=$(get_doris_conf_value "${DORIS_HOME}"/fe/conf/fe.conf 
query_port)
     cl="mysql -h127.0.0.1 -P${query_port} -uroot "
     # Variable_name    Value    Default_Value    Changed
-    if ${cl} -e'show variables' | awk '{if ($4 == 1){print "set global " $1 
"=" $3 ";"}}' >reset_session_variables; then
+    # "\x27" means single quote in awk
+    if ${cl} -e'show variables' | awk '{if ($4 == 1){print "set global " $1 
"=\x27" $3 "\x27;"}}' >reset_session_variables; then
         cat reset_session_variables
         if ${cl} <reset_session_variables; then
             echo "INFO: reset session variables to default, succeed"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to