mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Merge pull request #46897 from ClickHouse/fix-fill-empty-block
Fix - WITH FILL would produce abort when FillingTransform processing empty block
This commit is contained in:
commit
df5c7c98e6
@ -269,6 +269,9 @@ void FillingTransform::transform(Chunk & chunk)
|
||||
if (on_totals)
|
||||
return;
|
||||
|
||||
if (!chunk.hasRows() && !generate_suffix)
|
||||
return;
|
||||
|
||||
Columns old_fill_columns;
|
||||
Columns old_interpolate_columns;
|
||||
Columns old_other_columns;
|
||||
|
11
tests/queries/0_stateless/25339_fill_empty_chunk.reference
Normal file
11
tests/queries/0_stateless/25339_fill_empty_chunk.reference
Normal file
@ -0,0 +1,11 @@
|
||||
1 \N
|
||||
2 \N
|
||||
2 \N
|
||||
2 \N
|
||||
3 \N
|
||||
4 \N
|
||||
5 \N
|
||||
6 \N
|
||||
7 \N
|
||||
8 \N
|
||||
9 \N
|
10
tests/queries/0_stateless/25339_fill_empty_chunk.sql
Normal file
10
tests/queries/0_stateless/25339_fill_empty_chunk.sql
Normal file
@ -0,0 +1,10 @@
|
||||
-- this SELECT produces empty chunk in FillingTransform
|
||||
|
||||
SELECT
|
||||
2 AS x,
|
||||
arrayJoin([NULL, NULL, NULL])
|
||||
GROUP BY
|
||||
GROUPING SETS (
|
||||
(0),
|
||||
([NULL, NULL, NULL]))
|
||||
ORDER BY x ASC WITH FILL FROM 1 TO 10;
|
Loading…
Reference in New Issue
Block a user