mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
tests: cover progress for INSERT SELECT over HTTP
This commit is contained in:
parent
f7cf35d1dd
commit
45bc243b10
@ -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"}
|
12
tests/queries/0_stateless/02457_insert_select_progress_http.sh
Executable file
12
tests/queries/0_stateless/02457_insert_select_progress_http.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user