ClickHouse/tests/queries/1_stateful/00159_parallel_formatting_http.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
793 B
Bash
Raw Normal View History

2020-12-29 21:04:39 +00:00
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2020-12-30 15:21:58 +00:00
# shellcheck source=../shell_config.sh
2020-12-29 21:04:39 +00:00
. "$CURDIR"/../shell_config.sh
FORMATS=('TSV' 'CSV' 'JSONCompactEachRow')
for format in "${FORMATS[@]}"
do
echo "$format, false";
2022-03-11 23:31:20 +00:00
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}&query=SELECT+ClientEventTime::DateTime('Asia/Dubai')+as+a,MobilePhoneModel+as+b,ClientIP6+as+c+FROM+test.hits+ORDER+BY+a,b,c+LIMIT+1000000+Format+$format&output_format_parallel_formatting=false" -d' ' | md5sum
2020-12-29 21:04:39 +00:00
echo "$format, true";
2022-03-11 23:31:20 +00:00
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}&query=SELECT+ClientEventTime::DateTime('Asia/Dubai')+as+a,MobilePhoneModel+as+b,ClientIP6+as+c+FROM+test.hits+ORDER+BY+a,b,c+LIMIT+1000000+Format+$format&output_format_parallel_formatting=true" -d' ' | md5sum
2020-12-29 21:04:39 +00:00
done