ClickHouse/tests/queries/0_stateless/02891_functions_over_sparse_columns.sql
2023-10-08 00:38:04 +03:00

6 lines
258 B
SQL

drop table if exists test;
create table test (key Int) engine=MergeTree() order by tuple() settings ratio_of_defaults_for_sparse_serialization=0.1;
insert into test select 0 from numbers(10);
select arrayMap(x -> (x <= key), [1]) from test;
drop table test;