mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
fix
This commit is contained in:
parent
a34a544f4a
commit
caab4dd8b9
@ -45,7 +45,7 @@ Chunk Squashing::squash(Chunk && input_chunk)
|
||||
|
||||
Chunk Squashing::add(Chunk && input_chunk)
|
||||
{
|
||||
if (!input_chunk)
|
||||
if (!input_chunk || input_chunk.getNumRows() == 0)
|
||||
return {};
|
||||
|
||||
/// Just read block is already enough.
|
||||
|
22
tests/queries/0_stateless/03236_squashing_high_memory.sql
Normal file
22
tests/queries/0_stateless/03236_squashing_high_memory.sql
Normal file
@ -0,0 +1,22 @@
|
||||
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(1000000)) AS id1, arrayJoin(range(1000)) AS id2;
|
||||
|
||||
SET max_memory_usage = 1G;
|
||||
|
||||
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;
|
Loading…
Reference in New Issue
Block a user