ClickHouse/tests/queries/0_stateless/01710_projection_part_check.sql
2021-05-11 17:07:19 +03:00

11 lines
456 B
SQL

drop table if exists tp;
create table tp (x Int32, y Int32, projection p (select x, y order by x)) engine = MergeTree order by y settings min_rows_for_compact_part = 2, min_rows_for_wide_part = 4, min_bytes_for_compact_part = 16, min_bytes_for_wide_part = 32;
insert into tp select number, number from numbers(3);
insert into tp select number, number from numbers(5);
check table tp settings check_query_single_value_result=0;
drop table if exists tp;