mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Add a test for #57324
This commit is contained in:
parent
cd2ceb70a5
commit
e6c03886f0
27
tests/queries/0_stateless/03223_analyzer_with_cube_fuzz.sql
Normal file
27
tests/queries/0_stateless/03223_analyzer_with_cube_fuzz.sql
Normal file
@ -0,0 +1,27 @@
|
||||
DROP TABLE IF EXISTS t1;
|
||||
DROP TABLE IF EXISTS t2;
|
||||
|
||||
CREATE TABLE t1 (`a` Int64, `b` Int64) ENGINE = MergeTree ORDER BY a;
|
||||
CREATE TABLE t2 (`key` Int32, `val` Int64) ENGINE = MergeTree ORDER BY key;
|
||||
insert into t1 Select number, number from numbers(100000);
|
||||
insert into t2 Select number, number from numbers(100000);
|
||||
|
||||
|
||||
SELECT
|
||||
1 * 1000.0001,
|
||||
(count(1.) = -2147483647) AND (count(a) = 1.1920928955078125e-7) AND (count(val) = 1048577) AND (sum(val) = ((NULL * 1048576) / -9223372036854775807)) AND (sum(a) = ((9223372036854775806 * 10000000000.) / 1048575))
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
a,
|
||||
val
|
||||
FROM t1
|
||||
FULL OUTER JOIN t2 ON (t1.a = t2.key) OR (1 * inf) OR (t1.b = t2.key)
|
||||
)
|
||||
GROUP BY '65537'
|
||||
WITH CUBE
|
||||
FORMAT Null
|
||||
SETTINGS max_block_size = 100, join_use_nulls = 1, max_execution_time = 1., max_result_rows = 0, max_result_bytes = 0; -- { serverError TIMEOUT_EXCEEDED }
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
Loading…
Reference in New Issue
Block a user