mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
Fix for consts
This commit is contained in:
parent
b6960e6700
commit
e34e745466
@ -340,8 +340,13 @@ static void executeForTernaryLogicImpl(ColumnRawPtrs arguments, ColumnWithTypeAn
|
|||||||
}
|
}
|
||||||
|
|
||||||
const auto result_column = ColumnUInt8::create(input_rows_count);
|
const auto result_column = ColumnUInt8::create(input_rows_count);
|
||||||
|
MutableColumnPtr const_column_holder;
|
||||||
|
if (has_consts)
|
||||||
|
{
|
||||||
|
const_column_holder = convertFromTernaryData(UInt8Container({const_3v_value}), const_3v_value == Ternary::Null);
|
||||||
|
arguments.push_back(const_column_holder.get());
|
||||||
|
}
|
||||||
|
|
||||||
/// TODO: WARNING! This code is faulty for the case of constant
|
|
||||||
OperationApplier<Op, AssociativeGenericApplierImpl>::apply(arguments, result_column);
|
OperationApplier<Op, AssociativeGenericApplierImpl>::apply(arguments, result_column);
|
||||||
|
|
||||||
result_info.column = convertFromTernaryData(result_column->getData(), result_info.type->isNullable());
|
result_info.column = convertFromTernaryData(result_column->getData(), result_info.type->isNullable());
|
||||||
|
Loading…
Reference in New Issue
Block a user