diff --git a/tests/queries/0_stateless/01947_multiple_pipe_read.reference b/tests/queries/0_stateless/01947_multiple_pipe_read.reference index 97496c6b65d..7a4f632aa20 100644 --- a/tests/queries/0_stateless/01947_multiple_pipe_read.reference +++ b/tests/queries/0_stateless/01947_multiple_pipe_read.reference @@ -7,10 +7,6 @@ File generated: 5,"BBB" 6,"AAA" ****************** -Attempt to read twice from a pipeline -foo -foo -****************** Attempt to read twice from a regular file 0,"BBB" 1,"BBB" diff --git a/tests/queries/0_stateless/01947_multiple_pipe_read.sh b/tests/queries/0_stateless/01947_multiple_pipe_read.sh index f8e31432cca..12ea095a877 100755 --- a/tests/queries/0_stateless/01947_multiple_pipe_read.sh +++ b/tests/queries/0_stateless/01947_multiple_pipe_read.sh @@ -3,17 +3,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # shellcheck source=../shell_config.sh . "$CURDIR"/../shell_config.sh -SAMPLE_FILE="$CURDIR/01947_sample_data.csv" -STD_ERROR_CAPTURED="$CURDIR/01947_std_error_captured.log" +SAMPLE_FILE=$(mktemp 01947_multiple_pipe_read_sample_data_XXXXXX.csv) +STD_ERROR_CAPTURED=$(mktemp 01947_multiple_pipe_read_std_error_captured_XXXXXX.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" cat "$SAMPLE_FILE" -echo '******************' -echo 'Attempt to read twice from a pipeline' -${CLICKHOUSE_LOCAL} --structure 'key String' -q 'select * from table; select * from table;' <<