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

10 lines
208 B
MySQL
Raw Normal View History

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