ClickHouse/tests/queries/0_stateless/02907_http_exception_json_bug.sh
Kruglov Pavel 3cbf3c64ef
Update tests/queries/0_stateless/02907_http_exception_json_bug.sh
Co-authored-by: Raúl Marín <git@rmr.ninja>
2023-10-31 12:52:12 +01:00

11 lines
368 B
Bash
Executable File

#!/usr/bin/env bash
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
CH_URL="$CLICKHOUSE_URL&http_write_exception_in_output_format=1"
${CLICKHOUSE_CURL} -sS "$CH_URL" -d "SELECT repeat('1 ', 1000000) from system.one format JSONEachRow settings output_format_json_validate_utf8=1" | wc -w