mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
32 lines
2.0 KiB
XML
32 lines
2.0 KiB
XML
<test>
|
|
<settings>
|
|
<max_insert_threads>8</max_insert_threads>
|
|
<max_threads>1</max_threads>
|
|
</settings>
|
|
|
|
<create_query>
|
|
CREATE TABLE t_nullable
|
|
(
|
|
key_string1 Nullable(String),
|
|
key_string2 Nullable(String),
|
|
key_string3 Nullable(String),
|
|
key_int64_1 Nullable(Int64),
|
|
key_int64_2 Nullable(Int64),
|
|
key_int64_3 Nullable(Int64),
|
|
key_int64_4 Nullable(Int64),
|
|
key_int64_5 Nullable(Int64),
|
|
m1 Int64,
|
|
m2 Int64
|
|
)
|
|
ENGINE = Memory
|
|
</create_query>
|
|
<fill_query>insert into t_nullable select ['aaaaaa','bbaaaa','ccaaaa','ddaaaa'][number % 101 + 1], ['aa','bb','cc','dd'][number % 100 + 1], ['aa','bb','cc','dd'][number % 102 + 1], number%10+1, number%10+2, number%10+3, number%10+4,number%10+5, number%6000+1, number%5000+2 from numbers_mt(20000000)</fill_query>
|
|
<query>select key_string1,key_string2,key_string3, min(m1) from t_nullable group by key_string1,key_string2,key_string3</query>
|
|
<query>select key_string3,key_int64_1,key_int64_2, min(m1) from t_nullable group by key_string3,key_int64_1,key_int64_2</query>
|
|
<query>select key_int64_1,key_int64_2,key_int64_3,key_int64_4,key_int64_5, min(m1) from t_nullable group by key_int64_1,key_int64_2,key_int64_3,key_int64_4,key_int64_5</query>
|
|
<query>select toFloat64(key_int64_1),toFloat64(key_int64_2),toFloat64(key_int64_3),toFloat64(key_int64_4),toFloat64(key_int64_5), min(m1) from t_nullable group by toFloat64(key_int64_1),toFloat64(key_int64_2),toFloat64(key_int64_3),toFloat64(key_int64_4),toFloat64(key_int64_5) limit 10</query>
|
|
<query>select toDecimal64(key_int64_1, 3),toDecimal64(key_int64_2, 3),toDecimal64(key_int64_3, 3),toDecimal64(key_int64_4, 3),toDecimal64(key_int64_5, 3), min(m1) from t_nullable group by toDecimal64(key_int64_1, 3),toDecimal64(key_int64_2, 3),toDecimal64(key_int64_3, 3),toDecimal64(key_int64_4, 3),toDecimal64(key_int64_5, 3) limit 10</query>
|
|
|
|
<drop_query>drop table if exists t_nullable</drop_query>
|
|
</test>
|