mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Added left tuple argument unpacking for IN function if it doesn't equals to set types. [#CLICKHOUSE-3749]
This commit is contained in:
parent
8cb65277e2
commit
1b4c294f01
@ -755,7 +755,9 @@ public:
|
||||
tuple = typeid_cast<const ColumnTuple *>(materialized_tuple.get());
|
||||
}
|
||||
|
||||
if (tuple && type_tuple->getElements().size() != 1)
|
||||
auto set = column_set->getData();
|
||||
auto set_types = set->getDataTypes();
|
||||
if (tuple && (set_types.size() != 1 || !set_types[0]->equals(*type_tuple)))
|
||||
{
|
||||
const Columns & tuple_columns = tuple->getColumns();
|
||||
const DataTypes & tuple_types = type_tuple->getElements();
|
||||
@ -766,7 +768,7 @@ public:
|
||||
else
|
||||
block_of_key_columns.insert(left_arg);
|
||||
|
||||
block.getByPosition(result).column = column_set->getData()->execute(block_of_key_columns, negative);
|
||||
block.getByPosition(result).column = set->execute(block_of_key_columns, negative);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user