mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Merge pull request #67279 from ClickHouse/split-01651_lc_insert_tiny_log
Split `01651_lc_insert_tiny_log`
This commit is contained in:
commit
0f9c550811
@ -1,12 +0,0 @@
|
|||||||
10000000
|
|
||||||
10000000 1274991808
|
|
||||||
30000000
|
|
||||||
30000000 3824991808
|
|
||||||
10000000
|
|
||||||
10000000 1274991808
|
|
||||||
30000000
|
|
||||||
30000000 3824991808
|
|
||||||
10000000
|
|
||||||
10000000 1274991808
|
|
||||||
30000000
|
|
||||||
30000000 3824991808
|
|
@ -1,48 +0,0 @@
|
|||||||
set allow_suspicious_low_cardinality_types=1;
|
|
||||||
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, 20000000);
|
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE perf_lc_num( num UInt8, arr Array(LowCardinality(Int64)) default [num] ) ENGINE = Log;
|
|
||||||
|
|
||||||
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, 20000000);
|
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE perf_lc_num( num UInt8, arr Array(LowCardinality(Int64)) default [num] ) ENGINE = StripeLog;
|
|
||||||
|
|
||||||
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, 20000000);
|
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
|||||||
|
10000000
|
||||||
|
10000000 1274991808
|
||||||
|
30000000
|
||||||
|
30000000 3824991808
|
16
tests/queries/0_stateless/01651_lc_insert_tiny_log_1.sql
Normal file
16
tests/queries/0_stateless/01651_lc_insert_tiny_log_1.sql
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
set allow_suspicious_low_cardinality_types = 1, max_rows_to_read = '31M';
|
||||||
|
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, 20000000);
|
||||||
|
|
||||||
|
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;
|
@ -0,0 +1,4 @@
|
|||||||
|
10000000
|
||||||
|
10000000 1274991808
|
||||||
|
30000000
|
||||||
|
30000000 3824991808
|
16
tests/queries/0_stateless/01651_lc_insert_tiny_log_2.sql
Normal file
16
tests/queries/0_stateless/01651_lc_insert_tiny_log_2.sql
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
set allow_suspicious_low_cardinality_types = 1, max_rows_to_read = '31M';
|
||||||
|
drop table if exists perf_lc_num;
|
||||||
|
|
||||||
|
CREATE TABLE perf_lc_num( num UInt8, arr Array(LowCardinality(Int64)) default [num] ) ENGINE = Log;
|
||||||
|
|
||||||
|
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, 20000000);
|
||||||
|
|
||||||
|
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;
|
@ -0,0 +1,4 @@
|
|||||||
|
10000000
|
||||||
|
10000000 1274991808
|
||||||
|
30000000
|
||||||
|
30000000 3824991808
|
16
tests/queries/0_stateless/01651_lc_insert_tiny_log_3.sql
Normal file
16
tests/queries/0_stateless/01651_lc_insert_tiny_log_3.sql
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
set allow_suspicious_low_cardinality_types = 1, max_rows_to_read = '31M';
|
||||||
|
drop table if exists perf_lc_num;
|
||||||
|
|
||||||
|
CREATE TABLE perf_lc_num( num UInt8, arr Array(LowCardinality(Int64)) default [num] ) ENGINE = StripeLog;
|
||||||
|
|
||||||
|
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, 20000000);
|
||||||
|
|
||||||
|
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;
|
@ -1,4 +1,4 @@
|
|||||||
-- Tags: long
|
-- Tags: long, no-tsan
|
||||||
|
|
||||||
drop table if exists buffer_02231;
|
drop table if exists buffer_02231;
|
||||||
drop table if exists out_02231;
|
drop table if exists out_02231;
|
||||||
@ -29,7 +29,7 @@ from in_02231
|
|||||||
group by key;
|
group by key;
|
||||||
|
|
||||||
set optimize_trivial_insert_select = 1;
|
set optimize_trivial_insert_select = 1;
|
||||||
insert into in_02231 select * from numbers(10e6) settings max_memory_usage='400Mi', max_threads=1;
|
insert into in_02231 select * from numbers(5e6) settings max_memory_usage='40Mi', max_threads=1, min_insert_block_size_rows = 10000, min_insert_block_size_bytes = '10Mi';
|
||||||
|
|
||||||
drop table buffer_02231;
|
drop table buffer_02231;
|
||||||
drop table out_02231;
|
drop table out_02231;
|
||||||
|
Loading…
Reference in New Issue
Block a user