mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
Simplification of Nullable [#CLICKHOUSE-2]
This commit is contained in:
parent
8204d2cdfd
commit
8f248dd718
@ -64,12 +64,12 @@ DataTypePtr FieldToDataType::operator() (Array & x) const
|
||||
for (Field & elem : x)
|
||||
element_types.emplace_back(applyVisitor(FieldToDataType(), elem));
|
||||
|
||||
DataTypePtr res = std::make_shared<DataTypeArray>(getLeastCommonType(element_types));
|
||||
DataTypePtr res = getLeastCommonType(element_types);
|
||||
|
||||
for (Field & elem : x)
|
||||
elem = convertFieldToType(elem, *res);
|
||||
|
||||
return res;
|
||||
return std::make_shared<DataTypeArray>(res);
|
||||
}
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user