ClickHouse/tests/queries/0_stateless/02521_cannot-find-column-in-projection.sql
2023-01-06 14:50:28 +00:00

4 lines
332 B
SQL

create table test(day Date, id UInt32) engine=MergeTree partition by day order by tuple();
insert into test select toDate('2023-01-05') AS day, number from numbers(10);
with toUInt64(id) as id_with select day, count(id_with) from test where day >= '2023-01-01' group by day limit 1000; -- { serverError NOT_FOUND_COLUMN_IN_BLOCK }