mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix function if with nullable constexpr as cond that is not literal NULL
This commit is contained in:
parent
0adf8c723e
commit
9ad3dcacd6
@ -701,19 +701,13 @@ private:
|
||||
|
||||
if (cond_is_true)
|
||||
{
|
||||
if (result_column.type->equals(*column1.type))
|
||||
{
|
||||
result_column.column = std::move(column1.column);
|
||||
return true;
|
||||
}
|
||||
result_column.column = castColumn(column1, result_column.type);
|
||||
return true;
|
||||
}
|
||||
else if (cond_is_false || cond_is_null)
|
||||
{
|
||||
if (result_column.type->equals(*column2.type))
|
||||
{
|
||||
result_column.column = std::move(column2.column);
|
||||
return true;
|
||||
}
|
||||
result_column.column = castColumn(column2, result_column.type);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (const auto * nullable = checkAndGetColumn<ColumnNullable>(*not_const_condition))
|
||||
|
Loading…
Reference in New Issue
Block a user