ClickHouse/dbms/tests/queries/0_stateless/01030_final_mark_empty_primary_key.sql

9 lines
244 B
MySQL
Raw Normal View History

2019-11-05 18:21:49 +00:00
DROP TABLE IF EXISTS empty_pk;
CREATE TABLE empty_pk (x UInt64) ENGINE = MergeTree ORDER BY tuple() SETTINGS index_granularity = 256;
INSERT INTO empty_pk SELECT number FROM numbers(100000);
SELECT sum(x) from empty_pk;
DROP TABLE empty_pk;