Removed (obsolete) special handling for Arrays in the left hand side of IN (continued) #2113

This commit is contained in:
Alexey Milovidov 2018-04-06 03:25:14 +03:00
parent cf1a2241af
commit 30dd11f8ca

View File

@ -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)`).