Updated a comment that clarifies the expected error

This commit is contained in:
Anton Kozlov 2022-03-29 17:27:12 +01:00 committed by GitHub
parent 8143526cd2
commit 7da5d4f145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,8 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
function cleanup()
{
user_files_path=$(clickhouse-client --query "select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')" 2>&1 | grep Exception | awk '{gsub("/nonexist.txt","",$9); print $9}')
# this command expects an error message like 'Code: 107. DB::Exception: Received <...> nonexist.txt doesn't exist. (FILE_DOESNT_EXIST)'
user_files_path=$($CLICKHOUSE_CLIENT --query "select _path,_file from file('nonexist.txt', 'CSV', 'val1 char')" 2>&1 | grep FILE_DOESNT_EXIST | awk '{gsub("/nonexist.txt","",$9); print $9}')
rm $user_files_path/test_02167.*
}
trap cleanup EXIT