mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Update test
This commit is contained in:
parent
2acff24aaf
commit
68c542aec6
@ -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;
|
||||
|
||||
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)))),
|
||||
i16 Array(LowCardinality(Nullable((Int16)))),
|
||||
i32 Array(LowCardinality(Nullable((Int32)))),
|
||||
i64 Array(LowCardinality(Nullable((Int64)))),
|
||||
u8 Array(LowCardinality(Nullable((UInt8)))),
|
||||
u16 Array(LowCardinality(Nullable((UInt16)))),
|
||||
u32 Array(LowCardinality(Nullable((UInt32)))),
|
||||
u64 Array(LowCardinality(Nullable((UInt64)))),
|
||||
f32 Array(LowCardinality(Nullable((Float32)))),
|
||||
f64 Array(LowCardinality(Nullable((Float64)))),
|
||||
i8 Array(LowCardinality(Nullable(Int8))),
|
||||
i16 Array(LowCardinality(Nullable(Int16))),
|
||||
i32 Array(LowCardinality(Nullable(Int32))),
|
||||
i64 Array(LowCardinality(Nullable(Int64))),
|
||||
u8 Array(LowCardinality(Nullable(UInt8))),
|
||||
u16 Array(LowCardinality(Nullable(UInt16))),
|
||||
u32 Array(LowCardinality(Nullable(UInt32))),
|
||||
u64 Array(LowCardinality(Nullable(UInt64))),
|
||||
f32 Array(LowCardinality(Nullable(Float32))),
|
||||
f64 Array(LowCardinality(Nullable(Float64))),
|
||||
|
||||
date Array(LowCardinality(Nullable((Date)))),
|
||||
date Array(LowCardinality(Nullable(Date))),
|
||||
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)))),
|
||||
INDEX idx (i8, i16, i32, i64, u8, u16, u32, u64, f32, f64, date, date_time, str, fixed_string)
|
||||
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_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;
|
||||
SELECT count() FROM bloom_filter_array_offsets_lc_str WHERE has(str, 'value');
|
||||
DROP TABLE IF EXISTS bloom_filter_array_offsets_lc_str;
|
||||
|
@ -1,7 +1,7 @@
|
||||
DROP TABLE IF EXISTS lc_nullable;
|
||||
|
||||
CREATE TABLE lc_nullable (
|
||||
order_key Array(LowCardinality(Nullable((UInt64)))),
|
||||
order_key Array(LowCardinality(Nullable(UInt64))),
|
||||
|
||||
i8 Array(LowCardinality(Nullable(Int8))),
|
||||
i16 Array(LowCardinality(Nullable(Int16))),
|
||||
@ -14,10 +14,10 @@ CREATE TABLE lc_nullable (
|
||||
f32 Array(LowCardinality(Nullable(Float32))),
|
||||
f64 Array(LowCardinality(Nullable(Float64))),
|
||||
|
||||
date Array(LowCardinality(Nullable((Date)))),
|
||||
date Array(LowCardinality(Nullable(Date))),
|
||||
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))))
|
||||
) ENGINE = MergeTree() ORDER BY order_key;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user