Merge pull request #26018 from kitaisreal/functions-logical-const-result-for-non-const-arguments-fix

FunctionsLogical const result for non const arguments fix
This commit is contained in:
Maksim Kita 2021-07-06 21:02:48 +03:00 committed by GitHub
commit 8d6a183f23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -575,12 +575,12 @@ ColumnPtr FunctionAnyArityLogical<Impl, Name>::getConstantResultForNonConstArgum
if constexpr (std::is_same_v<Impl, AndImpl>)
{
if (has_false_constant)
result_type->createColumnConst(0, static_cast<UInt8>(false));
result_column = result_type->createColumnConst(0, static_cast<UInt8>(false));
}
else if constexpr (std::is_same_v<Impl, OrImpl>)
{
if (has_true_constant)
result_type->createColumnConst(0, static_cast<UInt8>(true));
result_column = result_type->createColumnConst(0, static_cast<UInt8>(true));
}
return result_column;