This commit is contained in:
Yakov Olkhovskiy 2024-12-15 23:55:46 +00:00
parent c23764725a
commit 7176f23446
3 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,6 @@
#include <Columns/IColumnImpl.h>
namespace DB
{

View File

@ -120,7 +120,7 @@ void ColumnNullable::get(size_t n, Field & res) const
std::pair<String, DataTypePtr> ColumnNullable::getValueNameAndType(size_t n) const
{
if (isNullAt(n))
return {"NULL", std::make_shared<DataTypeNullable>(std::make_shared<DataTypeNothing>())};
return {"NULL", std::make_shared<DataTypeNullable>(std::make_shared<DataTypeNothing>())};
return getNestedColumn().getValueNameAndType(n);
}

View File

@ -410,7 +410,7 @@ std::pair<String, DataTypePtr> ColumnVariant::getValueNameAndType(size_t n) cons
{
Discriminator discr = localDiscriminatorAt(n);
if (discr == NULL_DISCRIMINATOR)
return {"NULL", std::make_shared<DataTypeNullable>(std::make_shared<DataTypeNothing>())};
return {"NULL", std::make_shared<DataTypeNullable>(std::make_shared<DataTypeNothing>())};
return variants[discr]->getValueNameAndType(offsetAt(n));
}