File format parameter fix

Co-authored-by: Azat Khuzhin <a3at.mail@gmail.com>
This commit is contained in:
BoloniniD 2021-07-13 14:08:51 +03:00 committed by GitHub
parent 350f2c0455
commit 4772840a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ SAMPLE_FILE="$CURDIR/01941_sample_data.csv"
STD_ERROR_CAPTURED="$CURDIR/01941_std_error_captured.log" STD_ERROR_CAPTURED="$CURDIR/01941_std_error_captured.log"
echo 'File generated:' 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" cat "$SAMPLE_FILE"
echo '******************' echo '******************'
@ -49,4 +49,3 @@ fi
rm "$STD_ERROR_CAPTURED" "$SAMPLE_FILE" rm "$STD_ERROR_CAPTURED" "$SAMPLE_FILE"