2020-06-02 00:33:53 +00:00
|
|
|
#!/usr/bin/env bash
|
2023-06-28 08:33:07 +00:00
|
|
|
# Tags: no-fasttest, long, no-debug, no-s3-storage
|
2023-06-26 03:20:35 +00:00
|
|
|
# This test is too slow with S3 storage and debug modes.
|
2020-06-02 00:33:53 +00:00
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2020-12-28 11:46:53 +00:00
|
|
|
# shellcheck source=../shell_config.sh
|
2020-08-01 00:51:12 +00:00
|
|
|
. "$CURDIR"/../shell_config.sh
|
2020-06-02 00:33:53 +00:00
|
|
|
|
2020-08-01 00:40:56 +00:00
|
|
|
for _ in {1..100}; do $CLICKHOUSE_CLIENT --multiquery --query "
|
2020-06-02 00:33:53 +00:00
|
|
|
DROP TABLE IF EXISTS mt;
|
|
|
|
CREATE TABLE mt (x UInt8, k UInt8 DEFAULT 0) ENGINE = SummingMergeTree ORDER BY k;
|
|
|
|
|
|
|
|
INSERT INTO mt (x) VALUES (1);
|
|
|
|
INSERT INTO mt (x) VALUES (2);
|
|
|
|
INSERT INTO mt (x) VALUES (3);
|
|
|
|
INSERT INTO mt (x) VALUES (4);
|
|
|
|
INSERT INTO mt (x) VALUES (5);
|
|
|
|
INSERT INTO mt (x) VALUES (6);
|
|
|
|
INSERT INTO mt (x) VALUES (7);
|
|
|
|
INSERT INTO mt (x) VALUES (8);
|
|
|
|
INSERT INTO mt (x) VALUES (9);
|
|
|
|
INSERT INTO mt (x) VALUES (10);
|
|
|
|
|
|
|
|
OPTIMIZE TABLE mt FINAL;
|
|
|
|
SELECT * FROM mt;
|
|
|
|
|
|
|
|
DROP TABLE mt;
|
|
|
|
"; done
|