mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
File format parameter fix
Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
This commit is contained in:
parent
350f2c0455
commit
4772840a94
@ -7,7 +7,7 @@ SAMPLE_FILE="$CURDIR/01941_sample_data.csv"
|
||||
STD_ERROR_CAPTURED="$CURDIR/01941_std_error_captured.log"
|
||||
|
||||
echo 'File generated:'
|
||||
${CLICKHOUSE_LOCAL} -q "SELECT number, if(number in (4,6), 'AAA', 'BBB') from numbers(7) FORMAT TSV" | tr '\t' ',' >"$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"
|
||||
|
||||
echo '******************'
|
||||
@ -49,4 +49,3 @@ fi
|
||||
|
||||
rm "$STD_ERROR_CAPTURED" "$SAMPLE_FILE"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user