Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15871 from ClickHouse/backport/20.8/15662
Backport #15662 to 20.8: Fix read from Buffer table with empty nested table with different types.
- Loading branch information
Showing
3 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/queries/0_stateless/01514_empty_buffer_different_types.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a |
12 changes: 12 additions & 0 deletions
12
tests/queries/0_stateless/01514_empty_buffer_different_types.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set send_logs_level = 'error'; | ||
|
||
DROP TABLE IF EXISTS merge_tree_table1; | ||
CREATE TABLE merge_tree_table1 (`s` LowCardinality(String), x UInt32) ENGINE = MergeTree ORDER BY x settings index_granularity = 1; | ||
CREATE TABLE buffer_table1 ( `s` String , x UInt32) ENGINE = Buffer(currentDatabase(), 'merge_tree_table1', 16, 10, 60, 10, 1000, 1048576, 2097152); | ||
SELECT s FROM buffer_table1; | ||
|
||
insert into merge_tree_table1 values ('a', 1); | ||
select s from buffer_table1 where x = 1; | ||
select s from buffer_table1 where x = 2; | ||
|
||
DROP TABLE IF EXISTS merge_tree_table1; |