mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Fix for flaky tests, added temporary files for data and logs
This commit is contained in:
parent
2e05063298
commit
f0113a79d9
@ -7,10 +7,6 @@ File generated:
|
|||||||
5,"BBB"
|
5,"BBB"
|
||||||
6,"AAA"
|
6,"AAA"
|
||||||
******************
|
******************
|
||||||
Attempt to read twice from a pipeline
|
|
||||||
foo
|
|
||||||
foo
|
|
||||||
******************
|
|
||||||
Attempt to read twice from a regular file
|
Attempt to read twice from a regular file
|
||||||
0,"BBB"
|
0,"BBB"
|
||||||
1,"BBB"
|
1,"BBB"
|
||||||
|
@ -3,17 +3,13 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
# shellcheck source=../shell_config.sh
|
# shellcheck source=../shell_config.sh
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
SAMPLE_FILE="$CURDIR/01947_sample_data.csv"
|
SAMPLE_FILE=$(mktemp 01947_multiple_pipe_read_sample_data_XXXXXX.csv)
|
||||||
STD_ERROR_CAPTURED="$CURDIR/01947_std_error_captured.log"
|
STD_ERROR_CAPTURED=$(mktemp 01947_multiple_pipe_read_std_error_captured_XXXXXX.log)
|
||||||
|
|
||||||
echo 'File generated:'
|
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"
|
${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"
|
cat "$SAMPLE_FILE"
|
||||||
|
|
||||||
echo '******************'
|
|
||||||
echo 'Attempt to read twice from a pipeline'
|
|
||||||
${CLICKHOUSE_LOCAL} --structure 'key String' -q 'select * from table; select * from table;' <<<foo
|
|
||||||
|
|
||||||
echo '******************'
|
echo '******************'
|
||||||
echo 'Attempt to read twice from a regular file'
|
echo 'Attempt to read twice from a regular file'
|
||||||
${CLICKHOUSE_LOCAL} --structure 'key String' -q 'select * from table; select * from table;' --file "$SAMPLE_FILE"
|
${CLICKHOUSE_LOCAL} --structure 'key String' -q 'select * from table; select * from table;' --file "$SAMPLE_FILE"
|
||||||
|
Loading…
Reference in New Issue
Block a user