mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added test.
This commit is contained in:
parent
12f3b22623
commit
35a3bdc1a6
@ -0,0 +1,4 @@
|
||||
10000000
|
||||
10000000 1274991808
|
||||
20000000
|
||||
20000000 2549983616
|
15
tests/queries/0_stateless/01651_lc_insert_tiny_log.sql
Normal file
15
tests/queries/0_stateless/01651_lc_insert_tiny_log.sql
Normal file
@ -0,0 +1,15 @@
|
||||
drop table if exists perf_lc_num;
|
||||
|
||||
CREATE TABLE perf_lc_num( num UInt8, arr Array(LowCardinality(Int64)) default [num] ) ENGINE = TinyLog;
|
||||
|
||||
INSERT INTO perf_lc_num (num) SELECT toUInt8(number) FROM numbers(10000000);
|
||||
|
||||
select sum(length(arr)) from perf_lc_num;
|
||||
select sum(length(arr)), sum(num) from perf_lc_num;
|
||||
|
||||
INSERT INTO perf_lc_num (num) SELECT toUInt8(number) FROM numbers(10000000);
|
||||
|
||||
select sum(length(arr)) from perf_lc_num;
|
||||
select sum(length(arr)), sum(num) from perf_lc_num;
|
||||
|
||||
drop table if exists perf_lc_num;
|
Loading…
Reference in New Issue
Block a user