mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
b5cf644668
* Check projection metadata the same way we check ordinary metadata. * Allow aggregate projection to have empty PK --------- Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
4 lines
357 B
SQL
4 lines
357 B
SQL
create table kek (uuid FixedString(16), id int, ns String, dt DateTime64(6), projection null_pk (select * order by ns, 1, 4)) engine=MergeTree order by (id, dt, uuid); -- {serverError ILLEGAL_COLUMN }
|
|
-- this query could segfault or throw LOGICAL_ERROR previously, when we did not check projection PK
|
|
-- insert into kek select * from generageRandom(10000);
|