From 61cd36ce85ba557f165b1a1579e17e30832ff68c Mon Sep 17 00:00:00 2001 From: Alexey Gerasimchuck Date: Wed, 17 May 2023 03:44:38 +0000 Subject: [PATCH] fixed 02048_parallel_reading_from_infile.sh --- .../0_stateless/02048_parallel_reading_from_infile.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/queries/0_stateless/02048_parallel_reading_from_infile.sh b/tests/queries/0_stateless/02048_parallel_reading_from_infile.sh index d53fe8dd305..f055ea304b2 100755 --- a/tests/queries/0_stateless/02048_parallel_reading_from_infile.sh +++ b/tests/queries/0_stateless/02048_parallel_reading_from_infile.sh @@ -26,13 +26,12 @@ SELECT count() FROM test_infile_parallel WHERE Value='first'; SELECT count() FROM test_infile_parallel WHERE Value='second'; EOF -# Error code is 36 (BAD_ARGUMENTS). It is not ignored. -${CLICKHOUSE_CLIENT} --multiquery " -DROP TABLE IF EXISTS test_infile_parallel; +# Error code is 27 (DB::ParsingException). It is not ignored. +${CLICKHOUSE_CLIENT} -m --multiquery --query "DROP TABLE IF EXISTS test_infile_parallel; CREATE TABLE test_infile_parallel (Id Int32,Value Enum('first' = 1, 'second' = 2)) ENGINE=Memory(); SET input_format_allow_errors_num=0; INSERT INTO test_infile_parallel FROM INFILE '${CLICKHOUSE_TMP}/test_infile_parallel*' FORMAT TSV; -" 2>&1 | grep -q "36" && echo "Correct" || echo 'Fail' +" 2>&1 | grep -q "27" && echo "Correct" || echo 'Fail' ${CLICKHOUSE_LOCAL} --multiquery <