mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #21279 from kssenii/add-tests
Add tests for zstd and zlib http compression
This commit is contained in:
commit
470bc2b01b
@ -0,0 +1,23 @@
|
|||||||
|
},
|
||||||
|
{
|
||||||
|
"datetime": "2020-12-12",
|
||||||
|
"pipeline": "test-pipeline",
|
||||||
|
"host": "clickhouse-test-host-001.clickhouse.com",
|
||||||
|
"home": "clickhouse",
|
||||||
|
"detail": "clickhouse",
|
||||||
|
"row_number": "999998"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datetime": "2020-12-12",
|
||||||
|
"pipeline": "test-pipeline",
|
||||||
|
"host": "clickhouse-test-host-001.clickhouse.com",
|
||||||
|
"home": "clickhouse",
|
||||||
|
"detail": "clickhouse",
|
||||||
|
"row_number": "999999"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
"rows": 1000000,
|
||||||
|
|
||||||
|
"rows_before_limit_at_least": 1048080,
|
||||||
|
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
# shellcheck source=../shell_config.sh
|
||||||
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
|
${CLICKHOUSE_CURL} -sS -H 'Accept-Encoding: gzip' "${CLICKHOUSE_URL}&enable_http_compression=1&http_zlib_compression_level=1" -d "SELECT toDate('2020-12-12') as datetime, 'test-pipeline' as pipeline, 'clickhouse-test-host-001.clickhouse.com' as host, 'clickhouse' as home, 'clickhouse' as detail, number as row_number FROM numbers(1000000) FORMAT JSON" | gzip -d | tail -n30 | head -n23
|
@ -0,0 +1,23 @@
|
|||||||
|
},
|
||||||
|
{
|
||||||
|
"datetime": "2020-12-12",
|
||||||
|
"pipeline": "test-pipeline",
|
||||||
|
"host": "clickhouse-test-host-001.clickhouse.com",
|
||||||
|
"home": "clickhouse",
|
||||||
|
"detail": "clickhouse",
|
||||||
|
"row_number": "999998"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"datetime": "2020-12-12",
|
||||||
|
"pipeline": "test-pipeline",
|
||||||
|
"host": "clickhouse-test-host-001.clickhouse.com",
|
||||||
|
"home": "clickhouse",
|
||||||
|
"detail": "clickhouse",
|
||||||
|
"row_number": "999999"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
|
||||||
|
"rows": 1000000,
|
||||||
|
|
||||||
|
"rows_before_limit_at_least": 1048080,
|
||||||
|
|
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||||
|
# shellcheck source=../shell_config.sh
|
||||||
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
|
${CLICKHOUSE_CURL} -sS -H 'Accept-Encoding: zstd' "${CLICKHOUSE_URL}&enable_http_compression=1" -d "SELECT toDate('2020-12-12') as datetime, 'test-pipeline' as pipeline, 'clickhouse-test-host-001.clickhouse.com' as host, 'clickhouse' as home, 'clickhouse' as detail, number as row_number FROM numbers(1000000) FORMAT JSON" | zstd -d | tail -n30 | head -n23
|
Loading…
Reference in New Issue
Block a user