SET allow_experimental_data_skipping_indices = 1;


DROP TABLE IF EXISTS bloom_filter_null_array;

CREATE TABLE bloom_filter_null_array (v Array(LowCardinality(Nullable(String))), INDEX idx v TYPE bloom_filter(0.1) GRANULARITY 1) ENGINE = MergeTree() ORDER BY v;

INSERT INTO bloom_filter_null_array VALUES ([]);
INSERT INTO bloom_filter_null_array VALUES (['1', '2']) ([]) ([]);
INSERT INTO bloom_filter_null_array VALUES ([]) ([]) (['2', '3']);

SELECT COUNT() FROM bloom_filter_null_array;
SELECT COUNT() FROM bloom_filter_null_array WHERE has(v, '1');
SELECT COUNT() FROM bloom_filter_null_array WHERE has(v, '2');
SELECT COUNT() FROM bloom_filter_null_array WHERE has(v, '3');
SELECT COUNT() FROM bloom_filter_null_array WHERE has(v, '4');

DROP TABLE IF EXISTS bloom_filter_null_array;
