ClickHouse/tests/queries/0_stateless/02764_index_analysis_fix.sql

10 lines
229 B
SQL

drop table if exists x;
create table x (dt String) engine MergeTree partition by toYYYYMM(toDate(dt)) order by tuple();
insert into x values ('2022-10-01 10:10:10');
select * from x where dt like '2022-10-01%';
drop table x;