mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Removed (obsolete) special handling for Arrays in the left hand side of IN (continued) #2113
This commit is contained in:
parent
cf1a2241af
commit
30dd11f8ca
@ -16,7 +16,6 @@
|
||||
#include <Parsers/formatAST.h>
|
||||
|
||||
#include <DataTypes/DataTypeSet.h>
|
||||
#include <DataTypes/DataTypeArray.h>
|
||||
#include <DataTypes/DataTypeNullable.h>
|
||||
#include <DataTypes/DataTypeTuple.h>
|
||||
#include <DataTypes/NestedUtils.h>
|
||||
@ -1664,10 +1663,7 @@ void ExpressionAnalyzer::makeExplicitSet(const ASTFunction * node, const Block &
|
||||
else
|
||||
{
|
||||
DataTypePtr left_type = sample_block.getByName(left_arg->getColumnName()).type;
|
||||
if (const DataTypeArray * array_type = typeid_cast<const DataTypeArray *>(left_type.get()))
|
||||
set_element_types.push_back(array_type->getNestedType());
|
||||
else
|
||||
set_element_types.push_back(left_type);
|
||||
set_element_types.push_back(left_type);
|
||||
}
|
||||
|
||||
/// The case `x in (1, 2)` distinguishes from the case `x in 1` (also `x in (1)`).
|
||||
|
Loading…
Reference in New Issue
Block a user