mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Update src/Formats/SchemaInferenceUtils.cpp
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
This commit is contained in:
parent
548c909010
commit
bad5e27bbf
@ -1539,9 +1539,7 @@ DataTypePtr makeNullableRecursively(DataTypePtr type)
|
||||
DataTypes nested_types;
|
||||
for (const auto & nested_type: variant_type->getVariants())
|
||||
{
|
||||
auto is_low_cardinality = nested_type->lowCardinality();
|
||||
auto has_sub_types = nested_type->haveSubtypes();
|
||||
if (!is_low_cardinality && has_sub_types)
|
||||
if (!nested_type->lowCardinality() && nested_type->haveSubtypes())
|
||||
nested_types.push_back(makeNullableRecursively(nested_type));
|
||||
else
|
||||
nested_types.push_back(nested_type);
|
||||
|
Loading…
Reference in New Issue
Block a user