more fixes

This commit is contained in:
Alexander Kuzmenkov 2020-10-30 18:54:38 +03:00
parent 38726847fc
commit 7e76b7b510
12 changed files with 29 additions and 60 deletions

View File

@ -1,19 +1,6 @@
<test>
<stop_conditions>
<all_of>
<iterations>10</iterations>
</all_of>
</stop_conditions>
<query>SELECT any(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(120000000)</query>
<query>SELECT anyLast(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(120000000)</query>
<query>SELECT any(number * 2) as n, n * 3 FROM numbers(120000000)</query>
<query>SELECT any(number * round(toInt64(number), -2)) FROM numbers(120000000)</query>
<query>SELECT any(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(500000000)</query>
<query>SELECT anyLast(-1 * (((-2 * (number * -3)) * -4) * -5)) FROM numbers(500000000)</query>
<query>SELECT any(number * 2) as n, n * 3 FROM numbers(500000000)</query>
<query>SELECT any(number * round(toInt64(number), -2)) FROM numbers(500000000)</query>
</test>

View File

@ -67,7 +67,7 @@ PageCharset тоже почти всегда непуст, но его сред
<query>SELECT uniqCombined(17)(UserID) FROM hits_100m_single</query>
<!-- 44. Разные алгоритмы вычисления кардинальности. -->
<query>SELECT uniqExact(UserID) FROM hits_10m_single SETTINGS max_threads = 1</query>
<query>SELECT uniqExact(UserID) FROM hits_10m_single</query>
<query>SELECT uniqExact(UserID) FROM hits_100m_single</query>
<!-- 45. Что-то чуть более похожее на реальный запрос. -->
<query>SELECT RegionID, uniq(UserID) FROM hits_10m_single GROUP BY RegionID SETTINGS max_threads = 1</query>
<query>SELECT RegionID, uniq(UserID) FROM hits_100m_single GROUP BY RegionID</query>

View File

@ -5,7 +5,7 @@
<create_query>CREATE TABLE t (x UInt64, d32 Decimal32(3), d64 Decimal64(4), d128 Decimal128(5)) ENGINE = Memory</create_query>
<!-- use less threads to save memory -->
<fill_query>INSERT INTO t SELECT number AS x, x % 1000000 AS d32, x AS d64, x d128 FROM numbers_mt(100000000) SETTINGS max_threads = 8</fill_query>
<fill_query>INSERT INTO t SELECT number AS x, x % 1000000 AS d32, x AS d64, x d128 FROM numbers_mt(200000000) SETTINGS max_threads = 8</fill_query>
<drop_query>DROP TABLE IF EXISTS t</drop_query>
<query>SELECT toUInt32(x) y, toDecimal32(y, 1), toDecimal64(y, 5), toDecimal128(y, 6) FROM t FORMAT Null</query>

View File

@ -1,5 +1,5 @@
<test>
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(formatReadableSize(number))</query>
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(formatReadableQuantity(number))</query>
<query>SELECT count() FROM numbers(1000000) WHERE NOT ignore(formatReadableTimeDelta(number))</query>
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(formatReadableSize(number))</query>
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(formatReadableQuantity(number))</query>
<query>SELECT count() FROM numbers(10000000) WHERE NOT ignore(formatReadableTimeDelta(number))</query>
</test>

View File

@ -2,7 +2,7 @@
<query>select arrayUniq(range(1 + (number % 100) * 10)) from numbers(100000) format Null</query>
<query>select arrayDistinct(range(1 + (number % 100) * 10)) from numbers(100000) format Null</query>
<query>select arrayEnumerateUniq(range(1 + (number % 100) * 10)) from numbers(100000) format Null</query>
<query>select arrayIntersect(range((1 + number % 100)), range(1, (1 + number % 100) + 1)) from numbers(100000) format Null</query>
<query>select arrayIntersect(range((1 + number % 100)), range(1, (1 + number % 100) + 1)) from numbers(1000000) format Null</query>
<query>select groupUniqArray(rand() % 100) from numbers(1000 * 1000) group by number / 1000 format Null</query>
<query>select entropy(number / 10) from numbers(1000 * 1000) group by number / 1000 format Null</query>
</test>

View File

@ -61,7 +61,7 @@
intDiv( number, 4 ) as rowid,
groupArray( base64Encode( left( reinterpretAsString( rand64() ), 6) ) ) as arr
FROM
numbers(1000000)
numbers(2000000)
GROUP BY rowid
) GROUP BY id</fill_query>
<fill_query>optimize table lot_of_string_arrays_src</fill_query>

View File

@ -29,7 +29,7 @@
number
FROM
system.numbers
LIMIT 10000000
LIMIT 100000000
</fill_query>
<query>
SELECT

View File

@ -1,13 +1,9 @@
<test>
<preconditions>
<table_exists>hits_100m_single</table_exists>
</preconditions>
<query>SELECT * FROM hits_100m_single ORDER BY CounterID, EventDate LIMIT 100</query>
<query>SELECT * FROM hits_100m_single ORDER BY CounterID, EventDate LIMIT 1000</query>
<query>SELECT * FROM hits_100m_single ORDER BY CounterID DESC, toStartOfWeek(EventDate) DESC LIMIT 100</query>
<query>SELECT * FROM hits_100m_single ORDER BY CounterID, EventDate, URL LIMIT 100</query>
<query>SELECT * FROM hits_100m_single WHERE CounterID IN (152220, 168777, 149234, 149234) ORDER BY CounterID DESC, EventDate DESC LIMIT 100</query>

View File

@ -13,8 +13,7 @@
<create_query>create materialized view mv_4 engine = MergeTree order by tuple() as
select number, toString(number) from main_table where number % 13 != 4;</create_query>
<!--<query>insert into main_table select number from numbers(100000)</query>-->
<query>insert into main_table select number from numbers(1000000)</query>
<query>insert into main_table select number from numbers(10000000)</query>
<drop_query>drop table if exists main_table;</drop_query>
<drop_query>drop table if exists mv_1;</drop_query>

View File

@ -1,19 +1,9 @@
<test>
<stop_conditions>
<all_of>
<total_time_ms>10000</total_time_ms>
</all_of>
<any_of>
<total_time_ms>20000</total_time_ms>
</any_of>
</stop_conditions>
<substitutions>
<substitution>
<name>table</name>
<values>
<value>zeros(100000000)</value>
<value>zeros(1000000000)</value>
</values>
</substitution>
</substitutions>

View File

@ -1,9 +1,9 @@
<test>
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomString(10))</query>
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomString(100))</query>
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomString(1000))</query>
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomString(10000))</query>
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomString(rand() % 10))</query>
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomString(rand() % 100))</query>
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomString(rand() % 1000))</query>
<query>SELECT count() FROM zeros(100000000) WHERE NOT ignore(randomString(10))</query>
<query>SELECT count() FROM zeros(100000000) WHERE NOT ignore(randomString(100))</query>
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomString(1000))</query>
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomString(10000))</query>
<query>SELECT count() FROM zeros(100000000) WHERE NOT ignore(randomString(rand() % 10))</query>
<query>SELECT count() FROM zeros(100000000) WHERE NOT ignore(randomString(rand() % 100))</query>
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomString(rand() % 1000))</query>
</test>

View File

@ -1,12 +1,9 @@
<test>
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomStringUTF8(10))</query>
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomStringUTF8(100))</query>
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomStringUTF8(1000))</query>
<query>SELECT count() FROM zeros(1000) WHERE NOT ignore(randomStringUTF8(10000))</query>
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomStringUTF8(rand() % 10))</query>
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomStringUTF8(rand() % 100))</query>
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomStringUTF8(rand() % 1000))</query>
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomStringUTF8(10))</query>
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomStringUTF8(100))</query>
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomStringUTF8(1000))</query>
<query>SELECT count() FROM zeros(10000) WHERE NOT ignore(randomStringUTF8(10000))</query>
<query>SELECT count() FROM zeros(10000000) WHERE NOT ignore(randomStringUTF8(rand() % 10))</query>
<query>SELECT count() FROM zeros(1000000) WHERE NOT ignore(randomStringUTF8(rand() % 100))</query>
<query>SELECT count() FROM zeros(100000) WHERE NOT ignore(randomStringUTF8(rand() % 1000))</query>
</test>