Update test

This commit is contained in:
Alexey Milovidov 2021-01-28 07:43:59 +03:00
parent 2acff24aaf
commit 68c542aec6
2 changed files with 17 additions and 17 deletions

View File

@ -163,23 +163,23 @@ DROP TABLE IF EXISTS bloom_filter_lc_null_types_test;
DROP TABLE IF EXISTS bloom_filter_array_lc_null_types_test; DROP TABLE IF EXISTS bloom_filter_array_lc_null_types_test;
CREATE TABLE bloom_filter_array_lc_null_types_test ( CREATE TABLE bloom_filter_array_lc_null_types_test (
order_key Array(LowCardinality(Nullable((UInt64)))), order_key Array(LowCardinality(Nullable(UInt64))),
i8 Array(LowCardinality(Nullable((Int8)))), i8 Array(LowCardinality(Nullable(Int8))),
i16 Array(LowCardinality(Nullable((Int16)))), i16 Array(LowCardinality(Nullable(Int16))),
i32 Array(LowCardinality(Nullable((Int32)))), i32 Array(LowCardinality(Nullable(Int32))),
i64 Array(LowCardinality(Nullable((Int64)))), i64 Array(LowCardinality(Nullable(Int64))),
u8 Array(LowCardinality(Nullable((UInt8)))), u8 Array(LowCardinality(Nullable(UInt8))),
u16 Array(LowCardinality(Nullable((UInt16)))), u16 Array(LowCardinality(Nullable(UInt16))),
u32 Array(LowCardinality(Nullable((UInt32)))), u32 Array(LowCardinality(Nullable(UInt32))),
u64 Array(LowCardinality(Nullable((UInt64)))), u64 Array(LowCardinality(Nullable(UInt64))),
f32 Array(LowCardinality(Nullable((Float32)))), f32 Array(LowCardinality(Nullable(Float32))),
f64 Array(LowCardinality(Nullable((Float64)))), f64 Array(LowCardinality(Nullable(Float64))),
date Array(LowCardinality(Nullable((Date)))), date Array(LowCardinality(Nullable(Date))),
date_time Array(LowCardinality(Nullable(DateTime('Europe/Moscow')))), date_time Array(LowCardinality(Nullable(DateTime('Europe/Moscow')))),
str Array(LowCardinality(Nullable((String)))), str Array(LowCardinality(Nullable(String))),
fixed_string Array(LowCardinality(Nullable(FixedString(5)))), fixed_string Array(LowCardinality(Nullable(FixedString(5)))),
INDEX idx (i8, i16, i32, i64, u8, u16, u32, u64, f32, f64, date, date_time, str, fixed_string) INDEX idx (i8, i16, i32, i64, u8, u16, u32, u64, f32, f64, date, date_time, str, fixed_string)
TYPE bloom_filter GRANULARITY 1) TYPE bloom_filter GRANULARITY 1)
@ -286,7 +286,7 @@ SELECT COUNT() FROM bloom_filter_array_lc_null_types_test WHERE has(fixed_string
DROP TABLE IF EXISTS bloom_filter_array_lc_null_types_test; DROP TABLE IF EXISTS bloom_filter_array_lc_null_types_test;
DROP TABLE IF EXISTS bloom_filter_array_offsets_lc_str; DROP TABLE IF EXISTS bloom_filter_array_offsets_lc_str;
CREATE TABLE bloom_filter_array_offsets_lc_str (order_key int, str Array(LowCardinality((String))), INDEX idx str TYPE bloom_filter(1.) GRANULARITY 1024) ENGINE = MergeTree() ORDER BY order_key SETTINGS index_granularity = 1024; CREATE TABLE bloom_filter_array_offsets_lc_str (order_key int, str Array(LowCardinality(String)), INDEX idx str TYPE bloom_filter(1.) GRANULARITY 1024) ENGINE = MergeTree() ORDER BY order_key SETTINGS index_granularity = 1024;
INSERT INTO bloom_filter_array_offsets_lc_str SELECT number AS i, if(i%2, ['value'], []) FROM system.numbers LIMIT 10000; INSERT INTO bloom_filter_array_offsets_lc_str SELECT number AS i, if(i%2, ['value'], []) FROM system.numbers LIMIT 10000;
SELECT count() FROM bloom_filter_array_offsets_lc_str WHERE has(str, 'value'); SELECT count() FROM bloom_filter_array_offsets_lc_str WHERE has(str, 'value');
DROP TABLE IF EXISTS bloom_filter_array_offsets_lc_str; DROP TABLE IF EXISTS bloom_filter_array_offsets_lc_str;

View File

@ -1,7 +1,7 @@
DROP TABLE IF EXISTS lc_nullable; DROP TABLE IF EXISTS lc_nullable;
CREATE TABLE lc_nullable ( CREATE TABLE lc_nullable (
order_key Array(LowCardinality(Nullable((UInt64)))), order_key Array(LowCardinality(Nullable(UInt64))),
i8 Array(LowCardinality(Nullable(Int8))), i8 Array(LowCardinality(Nullable(Int8))),
i16 Array(LowCardinality(Nullable(Int16))), i16 Array(LowCardinality(Nullable(Int16))),
@ -14,10 +14,10 @@ CREATE TABLE lc_nullable (
f32 Array(LowCardinality(Nullable(Float32))), f32 Array(LowCardinality(Nullable(Float32))),
f64 Array(LowCardinality(Nullable(Float64))), f64 Array(LowCardinality(Nullable(Float64))),
date Array(LowCardinality(Nullable((Date)))), date Array(LowCardinality(Nullable(Date))),
date_time Array(LowCardinality(Nullable(DateTime('Europe/Moscow')))), date_time Array(LowCardinality(Nullable(DateTime('Europe/Moscow')))),
str Array(LowCardinality(Nullable((String)))), str Array(LowCardinality(Nullable(String))),
fixed_string Array(LowCardinality(Nullable(FixedString(5)))) fixed_string Array(LowCardinality(Nullable(FixedString(5))))
) ENGINE = MergeTree() ORDER BY order_key; ) ENGINE = MergeTree() ORDER BY order_key;