zclllyybb commented on code in PR #42445:
URL: https://github.com/apache/doris/pull/42445#discussion_r1839332050


##########
tools/ssb-tools/bin/run-ssb-queries.sh:
##########
@@ -120,19 +123,31 @@ for i in '1.1' '1.2' '1.3' '2.1' '2.2' '2.3' '3.1' '3.2' 
'3.3' '3.4' '4.1' '4.2'
     hot2=0
     echo -ne "q${i}\t" | tee -a result.csv
     start=$(date +%s%3N)
-    mysql -h"${FE_HOST}" -u "${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" 
--comments <"${QUERIES_DIR}"/q"${i}".sql >"${RESULT_DIR}"/result"${i}".out 
2>"${RESULT_DIR}"/result"${i}".log
+    if ! mysql -h"${FE_HOST}" -u"${USER}" -P"${FE_QUERY_PORT}" -D"${DB}" 
--comments \
+        <"${QUERIES_DIR}/q${i}.sql" >"${RESULT_DIR}/result${i}.out" 
2>"${RESULT_DIR}/result${i}.log"; then

Review Comment:
   maybe don't use the log file, just printing the errmsg to console is better



-- 
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]

Reply via email to