ClickHouse/dbms/tests/queries/0_stateless/00575_merge_and_index_with_function_in_in.sql

10 lines
183 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS t;
2018-02-20 20:19:04 +00:00
create table t(d Date) engine MergeTree(d, d, 8192);
2018-02-20 20:19:04 +00:00
insert into t values ('2018-02-20');
2018-02-20 20:19:04 +00:00
select count() from t where toDayOfWeek(d) in (2);
2018-02-20 20:19:04 +00:00
DROP TABLE t;