mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
use isNullable function in join_common/convertTypeToNullable
This commit is contained in:
parent
510a909d0d
commit
6eda8ef914
@ -127,7 +127,7 @@ bool isNullable(const DataTypePtr & type)
|
|||||||
/// Note: LowCardinality(T) transformed to LowCardinality(Nullable(T))
|
/// Note: LowCardinality(T) transformed to LowCardinality(Nullable(T))
|
||||||
DataTypePtr convertTypeToNullable(const DataTypePtr & type)
|
DataTypePtr convertTypeToNullable(const DataTypePtr & type)
|
||||||
{
|
{
|
||||||
if (type->isNullable())
|
if (isNullable(type))
|
||||||
return type;
|
return type;
|
||||||
|
|
||||||
if (const auto * low_cardinality_type = typeid_cast<const DataTypeLowCardinality *>(type.get()))
|
if (const auto * low_cardinality_type = typeid_cast<const DataTypeLowCardinality *>(type.get()))
|
||||||
|
Loading…
Reference in New Issue
Block a user