mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Fixed test
This commit is contained in:
parent
259be751ee
commit
ea013cf1a2
@ -1,11 +1,12 @@
|
||||
DROP TABLE IF EXISTs new_table_test;
|
||||
DROP TABLE IF EXISTS new_table_test;
|
||||
DROP TABLE IF EXISTS check_table_test;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS new_table_test(name String) ENGINE = MergeTree Order By name;
|
||||
CREATE TABLE IF NOT EXISTS check_table_test(value1 UInt64, value2 UInt64) ENGINE = MergeTree Order By tuple();
|
||||
INSERT INTO check_table_test (value1) SELECT value from system.events WHERE event = 'Merge';
|
||||
CREATE TABLE new_table_test(name String) ENGINE = MergeTree ORDER BY name;
|
||||
INSERT INTO new_table_test VALUES ('test');
|
||||
CREATE TABLE check_table_test(value1 UInt64, value2 UInt64) ENGINE = MergeTree ORDER BY tuple();
|
||||
INSERT INTO check_table_test (value1) SELECT value FROM system.events WHERE event = 'Merge';
|
||||
OPTIMIZE TABLE new_table_test FINAL;
|
||||
INSERT INTO check_table_test (value2) SELECT value from system.events WHERE event = 'Merge';
|
||||
INSERT INTO check_table_test (value2) SELECT value FROM system.events WHERE event = 'Merge';
|
||||
SELECT count() FROM check_table_test WHERE value2 > value1;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user