2024-09-11 10:32:36 +00:00
|
|
|
-- Tags: no-fasttest, no-asan, no-tsan, no-msan, no-ubsan
|
2024-09-10 18:15:36 +00:00
|
|
|
-- reason: test requires too many rows to read
|
|
|
|
|
2024-09-11 09:17:06 +00:00
|
|
|
SET max_rows_to_read = '501G';
|
|
|
|
|
2024-09-10 16:20:48 +00:00
|
|
|
DROP TABLE IF EXISTS id_values;
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS test_table;
|
|
|
|
|
|
|
|
CREATE TABLE id_values ENGINE MergeTree ORDER BY id1 AS
|
2024-09-11 09:17:06 +00:00
|
|
|
SELECT arrayJoin(range(500000)) AS id1, arrayJoin(range(1000)) AS id2;
|
2024-09-10 16:20:48 +00:00
|
|
|
|
2024-09-10 17:53:16 +00:00
|
|
|
SET max_memory_usage = '1G';
|
2024-09-10 16:20:48 +00:00
|
|
|
|
|
|
|
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;
|