Fix tests

This commit is contained in:
Alexey Milovidov 2024-07-24 10:45:33 +02:00
parent 63e586d17a
commit c2238c5723
8 changed files with 13 additions and 10 deletions

View File

@ -7,7 +7,7 @@ INSERT INTO group_uniq_str SELECT 2 as id, toString(number % 100) as v FROM syst
INSERT INTO group_uniq_str SELECT 5 as id, toString(number % 100) as v FROM system.numbers LIMIT 10000000;
SELECT length(groupUniqArray(v)) FROM group_uniq_str GROUP BY id ORDER BY id;
SELECT length(groupUniqArray(v)) FROM remote('127.0.0.{2,3,4,5}', currentDatabase(), 'group_uniq_str') GROUP BY id ORDER BY id SETTINGS max_rows_to_read = '60M';
SELECT length(groupUniqArray(v)) FROM remote('127.0.0.{2,3,4,5}', currentDatabase(), 'group_uniq_str') GROUP BY id ORDER BY id SETTINGS max_rows_to_read = '100M';
SELECT length(groupUniqArray(10)(v)) FROM group_uniq_str GROUP BY id ORDER BY id;
SELECT length(groupUniqArray(10000)(v)) FROM group_uniq_str GROUP BY id ORDER BY id;

View File

@ -1,12 +1,14 @@
-- Tags: shard
SET max_rows_to_read = '55M';
DROP TABLE IF EXISTS group_uniq_arr_int;
CREATE TABLE group_uniq_arr_int ENGINE = Memory AS
SELECT g as id, if(c == 0, [v], if(c == 1, emptyArrayInt64(), [v, v])) as v FROM
(SELECT intDiv(number%1000000, 100) as v, intDiv(number%100, 10) as g, number%10 as c FROM system.numbers WHERE c < 3 LIMIT 10000000);
SELECT length(groupUniqArray(v)) FROM group_uniq_arr_int GROUP BY id ORDER BY id;
SELECT length(groupUniqArray(v)) FROM remote('127.0.0.{2,3,4,5}', currentDatabase(), 'group_uniq_arr_int') GROUP BY id ORDER BY id SETTINGS max_rows_to_read = '55M';
SELECT length(groupUniqArray(v)) FROM remote('127.0.0.{2,3,4,5}', currentDatabase(), 'group_uniq_arr_int') GROUP BY id ORDER BY id;
SELECT length(groupUniqArray(10)(v)) FROM group_uniq_arr_int GROUP BY id ORDER BY id;
SELECT length(groupUniqArray(100000)(v)) FROM group_uniq_arr_int GROUP BY id ORDER BY id;

View File

@ -1,4 +1,5 @@
-- Tags: shard
SET max_rows_to_read = '55M';
DROP TABLE IF EXISTS group_uniq_arr_str;
CREATE TABLE group_uniq_arr_str ENGINE = Memory AS
@ -6,6 +7,6 @@ CREATE TABLE group_uniq_arr_str ENGINE = Memory AS
(SELECT intDiv(number%1000000, 100) as v, intDiv(number%100, 10) as g, number%10 as c FROM system.numbers WHERE c < 3 LIMIT 10000000);
SELECT length(groupUniqArray(v)) FROM group_uniq_arr_str GROUP BY id ORDER BY id;
SELECT length(groupUniqArray(v)) FROM remote('127.0.0.{2,3,4,5}', currentDatabase(), 'group_uniq_arr_str') GROUP BY id ORDER BY id SETTINGS max_rows_to_read = '55M';
SELECT length(groupUniqArray(v)) FROM remote('127.0.0.{2,3,4,5}', currentDatabase(), 'group_uniq_arr_str') GROUP BY id ORDER BY id;
DROP TABLE IF EXISTS group_uniq_arr_str;

View File

@ -1,4 +1,4 @@
SET max_rows_to_read = '100M'
SET max_rows_to_read = '100M';
drop table if exists lc_00906;
create table lc_00906 (b LowCardinality(String)) engine=MergeTree order by b SETTINGS index_granularity = 8192, index_granularity_bytes = '10Mi';
insert into lc_00906 select '0123456789' from numbers(100000000);

View File

@ -1,6 +1,6 @@
-- Tags: no-random-settings, no-asan, no-msan, no-tsan, no-ubsan, no-debug
SET max_rows_to_read = '100M'
SET max_rows_to_read = '100M';
select count() from
(

View File

@ -2,5 +2,5 @@
SET max_bytes_before_external_group_by = 0;
SET max_memory_usage = '100M', max_rows_to_read = '1B';
SET max_memory_usage = '100M', max_rows_to_read = '1G';
SELECT cityHash64(rand() % 1000) as n, groupBitmapState(number) FROM numbers_mt(200000000) GROUP BY n FORMAT Null; -- { serverError MEMORY_LIMIT_EXCEEDED }

View File

@ -26,9 +26,9 @@ IPv4 functions
IPv6 functions
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
\N
\0\0\0\0\0\0\0\0\0\0<><30>\0\0
\0\0\0\0\0\0\0\0\0\0<><30>\0\0
\0\0\0\0\0\0\0\0\0\0<><30>\0\0
\0\0\0\0\0\0\0\0\0\0<><30>\0\0
\0\0\0\0\0\0\0\0\0\0<><30>\0\0
\0\0\0\0\0\0\0\0\0\0<><30>\0\0
--
::
\N

View File

@ -71,7 +71,7 @@ SELECT count() FROM numbers_mt(20000000) WHERE NOT ignore(toIPv6OrZero(randomStr
SELECT '--';
SELECT cast('test' , 'IPv6'); --{serverError CANNOT_PARSE_IPV6}
SELECT cast('test' , 'IPv6'); -- { serverError CANNOT_PARSE_IPV6 }
SELECT cast('::ffff:127.0.0.1', 'IPv6');
SELECT '--';