tests: cover progress for INSERT SELECT over HTTP

This commit is contained in:
Aleksandr Musorin 2022-10-04 14:21:54 +02:00 committed by Azat Khuzhin
parent f7cf35d1dd
commit 45bc243b10
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1 @@
< X-ClickHouse-Summary: {"read_rows":"1000","read_bytes":"8000","written_rows":"1000","written_bytes":"2000","total_rows_to_read":"1000","result_rows":"1000","result_bytes":"2000"}

View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d @- <<< "drop table if exists insert_select_progress_http"
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d @- <<< "create table insert_select_progress_http(n UInt16) engine = MergeTree order by n"
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}&send_progress_in_http_headers=1" -d @- <<< "insert into insert_select_progress_http select * from numbers(1e3)" -v |& grep X-ClickHouse-Summary
${CLICKHOUSE_CURL} -sS "${CLICKHOUSE_URL}" -d @- <<< "drop table insert_select_progress_http"