File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
tests/queries/0_stateless Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
44# shellcheck source=../shell_config.sh
55. " $CURDIR " /../shell_config.sh
66
7- for frmt in TSV TabSeparatedWithNamesAndTypes CSV CSVWithNames Null Native RowBinary JSONStrings JSON JSONEachRow Values Vertical
7+ THREADS=$( nproc)
8+
9+ for format in TSV TabSeparatedWithNamesAndTypes CSV CSVWithNames Null Native RowBinary JSONStrings JSON JSONEachRow Values Vertical
810do
9- echo $frmt
10- url=" ${CLICKHOUSE_URL} /?http_headers_progress_interval_ms=1&send_progress_in_http_headers=true&query=select+sleepEachRow(0.01)from+numbers(10)+FORMAT+${frmt } "
11- (seq 1 200 | xargs -n1 -P0 -Ixxx curl -Ss -v -o /dev/null ${url} 2>&1 | grep -Eo " Content-Type:.*$" )| strings| sort -u
11+ echo $format
12+ url=" ${CLICKHOUSE_URL} /?http_headers_progress_interval_ms=1&send_progress_in_http_headers=true&query=select+sleepEachRow(0.01)from+numbers(10)+FORMAT+${format } "
13+ (seq 1 ${THREADS} | xargs --max-args=1 -P " ${THREADS} " -Ixxx curl -Ss -v -o /dev/null ${url} 2>&1 | grep -P -o " Content-Type:.*$" ) | strings | sort -u
1214done
1315
You can’t perform that action at this time.
0 commit comments