mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 21:03:51 +00:00
29 lines
945 B
SQL
29 lines
945 B
SQL
-- Tags: no-fasttest, no-asan, no-tsan, no-msan, no-ubsan
|
|
-- reason: test requires too many rows to read
|
|
|
|
SET max_rows_to_read = '501G';
|
|
|
|
DROP TABLE IF EXISTS id_values;
|
|
|
|
DROP TABLE IF EXISTS test_table;
|
|
|
|
CREATE TABLE id_values ENGINE MergeTree ORDER BY id1 AS
|
|
SELECT arrayJoin(range(500000)) AS id1, arrayJoin(range(1000)) AS id2;
|
|
|
|
SET max_memory_usage = '1G';
|
|
SET query_plan_join_swap_table = 'false';
|
|
|
|
CREATE TABLE test_table ENGINE MergeTree ORDER BY id AS
|
|
SELECT id_values.id1 AS id,
|
|
string_values.string_val1 AS string_val1,
|
|
string_values.string_val2 AS string_val2
|
|
FROM id_values
|
|
JOIN (SELECT arrayJoin(range(10)) AS id1,
|
|
'qwe' AS string_val1,
|
|
'asd' AS string_val2) AS string_values
|
|
ON id_values.id1 = string_values.id1
|
|
SETTINGS join_algorithm = 'hash';
|
|
|
|
DROP TABLE IF EXISTS id_values;
|
|
DROP TABLE IF EXISTS test_table;
|