From bab7681bc18fbaf7df49737ca72cfe70756a5f62 Mon Sep 17 00:00:00 2001 From: BoloniniD Date: Thu, 15 Jul 2021 17:47:03 +0300 Subject: [PATCH] Fix test number and some fixes in reference --- ...pipe_read.reference => 01947_multiple_pipe_read.reference} | 2 +- ...1941_multiple_pipe_read.sh => 01947_multiple_pipe_read.sh} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename tests/queries/0_stateless/{01941_multiple_pipe_read.reference => 01947_multiple_pipe_read.reference} (84%) rename tests/queries/0_stateless/{01941_multiple_pipe_read.sh => 01947_multiple_pipe_read.sh} (91%) diff --git a/tests/queries/0_stateless/01941_multiple_pipe_read.reference b/tests/queries/0_stateless/01947_multiple_pipe_read.reference similarity index 84% rename from tests/queries/0_stateless/01941_multiple_pipe_read.reference rename to tests/queries/0_stateless/01947_multiple_pipe_read.reference index f346f4edd68..97496c6b65d 100644 --- a/tests/queries/0_stateless/01941_multiple_pipe_read.reference +++ b/tests/queries/0_stateless/01947_multiple_pipe_read.reference @@ -28,4 +28,4 @@ Attempt to read twice from a regular file 6,"AAA" ****************** Attempt to read twice from a pipe -OK: stderr contains a message \ No newline at end of file +OK: stderr contains a message 'Cannot read from a pipeline twice' diff --git a/tests/queries/0_stateless/01941_multiple_pipe_read.sh b/tests/queries/0_stateless/01947_multiple_pipe_read.sh similarity index 91% rename from tests/queries/0_stateless/01941_multiple_pipe_read.sh rename to tests/queries/0_stateless/01947_multiple_pipe_read.sh index f497b76a4c9..f8e31432cca 100755 --- a/tests/queries/0_stateless/01941_multiple_pipe_read.sh +++ b/tests/queries/0_stateless/01947_multiple_pipe_read.sh @@ -3,8 +3,8 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # shellcheck source=../shell_config.sh . "$CURDIR"/../shell_config.sh -SAMPLE_FILE="$CURDIR/01941_sample_data.csv" -STD_ERROR_CAPTURED="$CURDIR/01941_std_error_captured.log" +SAMPLE_FILE="$CURDIR/01947_sample_data.csv" +STD_ERROR_CAPTURED="$CURDIR/01947_std_error_captured.log" echo 'File generated:' ${CLICKHOUSE_LOCAL} -q "SELECT number, if(number in (4,6), 'AAA', 'BBB') from numbers(7) FORMAT CSV" --format_csv_delimiter=, >"$SAMPLE_FILE"