mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-10 08:22:00 +00:00
fe8f84dccc
99% of all tests in the fasttest profile run in one sec or less. The excluded tests take 10 sec or more (the slowest being 02271_replace_partition_many_tables with 30 sec). Estimated savings: 7 min
22 lines
820 B
Bash
Executable File
22 lines
820 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Tags: no-parallel, no-fasttest
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
for format in Native Values JSONCompactEachRow TSKV TSV CSV JSONEachRow JSONCompactEachRow JSONStringsEachRow
|
|
do
|
|
echo $format
|
|
${CLICKHOUSE_CLIENT} --query "DROP TABLE IF EXISTS file"
|
|
${CLICKHOUSE_CLIENT} --query "CREATE TABLE file (x UInt64) ENGINE = File($format, '${CLICKHOUSE_DATABASE}/data.$format.lz4')"
|
|
for size in 10000 100000 1000000 2500000
|
|
do
|
|
${CLICKHOUSE_CLIENT} --query "TRUNCATE TABLE file"
|
|
${CLICKHOUSE_CLIENT} --query "INSERT INTO file SELECT * FROM numbers($size)"
|
|
${CLICKHOUSE_CLIENT} --query "SELECT max(x) FROM file"
|
|
done
|
|
done
|
|
|
|
${CLICKHOUSE_CLIENT} --query "DROP TABLE file"
|