mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Added a test
This commit is contained in:
parent
8e5d672563
commit
877a3725eb
100
tests/queries/0_stateless/01293_optimize_final_force.reference
Normal file
100
tests/queries/0_stateless/01293_optimize_final_force.reference
Normal file
@ -0,0 +1,100 @@
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
||||
55 0
|
25
tests/queries/0_stateless/01293_optimize_final_force.sh
Executable file
25
tests/queries/0_stateless/01293_optimize_final_force.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
for i in {1..100}; do $CLICKHOUSE_CLIENT --multiquery --query "
|
||||
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
|
Loading…
Reference in New Issue
Block a user