mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
Update 03210_dynamic_squashing.sql
This commit is contained in:
parent
5812dbcf2e
commit
52dea79a90
@ -6,18 +6,18 @@ set max_block_size = 1000;
|
||||
drop table if exists test;
|
||||
|
||||
create table test (d Dynamic) engine=MergeTree order by tuple();
|
||||
insert into test select multiIf(number < 1000, NULL::Dynamic(max_types=1), number < 3000, range(number % 5)::Dynamic(max_types=1), number::Dynamic(max_types=1)) from numbers(1000000);
|
||||
insert into test select multiIf(number < 1000, NULL::Dynamic(max_types=1), number < 3000, range(number % 5)::Dynamic(max_types=1), number::Dynamic(max_types=1)) from numbers(100000);
|
||||
select '1';
|
||||
select distinct dynamicType(d) as type, isDynamicElementInSharedData(d) as flag from test order by type;
|
||||
|
||||
drop table test;
|
||||
create table test (d Dynamic(max_types=1)) engine=MergeTree order by tuple();
|
||||
insert into test select multiIf(number < 1000, NULL::Dynamic(max_types=1), number < 3000, range(number % 5)::Dynamic(max_types=1), number::Dynamic(max_types=1)) from numbers(1000000);
|
||||
insert into test select multiIf(number < 1000, NULL::Dynamic(max_types=1), number < 3000, range(number % 5)::Dynamic(max_types=1), number::Dynamic(max_types=1)) from numbers(100000);
|
||||
select '2';
|
||||
select distinct dynamicType(d) as type, isDynamicElementInSharedData(d) as flag from test order by type;
|
||||
|
||||
truncate table test;
|
||||
insert into test select multiIf(number < 1000, 'Str'::Dynamic(max_types=1), number < 3000, range(number % 5)::Dynamic(max_types=1), number::Dynamic(max_types=1)) from numbers(1000000);
|
||||
insert into test select multiIf(number < 1000, 'Str'::Dynamic(max_types=1), number < 3000, range(number % 5)::Dynamic(max_types=1), number::Dynamic(max_types=1)) from numbers(100000);
|
||||
select '3';
|
||||
select distinct dynamicType(d) as type, isDynamicElementInSharedData(d) as flag from test order by type;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user