mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fix const column in set index.
This commit is contained in:
parent
6787f98476
commit
6b4512809c
@ -205,7 +205,7 @@ bool Set::insertFromBlock(const Block & block)
|
||||
{
|
||||
for (size_t i = 0; i < keys_size; ++i)
|
||||
{
|
||||
auto filtered_column = block.getByPosition(i).column->filter(filter->getData(), rows);
|
||||
auto filtered_column = key_columns[i]->filter(filter->getData(), rows);
|
||||
if (set_elements[i]->empty())
|
||||
set_elements[i] = filtered_column;
|
||||
else
|
||||
|
@ -0,0 +1 @@
|
||||
3 5
|
@ -0,0 +1,9 @@
|
||||
drop table if exists insub;
|
||||
|
||||
create table insub (i int, j int) engine MergeTree order by i settings index_granularity = 1;
|
||||
insert into insub select number a, a + 2 from numbers(10);
|
||||
|
||||
SET max_rows_to_read = 2;
|
||||
select * from insub where i in (select toInt32(3) from numbers(10));
|
||||
|
||||
drop table if exists insub;
|
Loading…
Reference in New Issue
Block a user