ClickHouse/tests/queries/0_stateless/02115_write_buffers_finalize.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
705 B
Bash
Raw Normal View History

2021-11-10 22:58:56 +00:00
#!/usr/bin/env bash
2021-11-15 15:19:54 +00:00
# Tags: no-fasttest, no-parallel
2021-11-15 13:08:16 +00:00
# Tag no-fasttest: depends on brotli and bzip2
2021-11-10 22:58:56 +00:00
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
2021-11-15 11:58:18 +00:00
for m in gz br xz zst bz2
do
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS file"
${CLICKHOUSE_CLIENT} --query "CREATE TABLE file (x UInt64) ENGINE = File(Native, '${CLICKHOUSE_DATABASE}/${m}.data.${m}')"
${CLICKHOUSE_CLIENT} --query "TRUNCATE TABLE file"
${CLICKHOUSE_CLIENT} --query "INSERT INTO file SELECT * FROM numbers(100000)"
${CLICKHOUSE_CLIENT} --query "SELECT count(), max(x) FROM file"
${CLICKHOUSE_CLIENT} --query "DROP TABLE file"
done
2021-11-10 22:58:56 +00:00