mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Fixed tests
This commit is contained in:
parent
e28dfb7ea8
commit
46cbdeeb7e
@ -1120,9 +1120,8 @@ public:
|
||||
ColumnPtr getConstantResultForNonConstArguments(const ColumnsWithTypeAndName & arguments, const DataTypePtr & result_type) const override
|
||||
{
|
||||
const ColumnWithTypeAndName & arg_cond = arguments[0];
|
||||
if (!arg_cond.column || !isColumnConst(*arg_cond.column)) {
|
||||
if (!arg_cond.column || !isColumnConst(*arg_cond.column))
|
||||
return {};
|
||||
}
|
||||
|
||||
const ColumnConst * cond_const_col = checkAndGetColumnConst<ColumnVector<UInt8>>(arg_cond.column.get());
|
||||
bool condition_value = cond_const_col->getValue<UInt8>();
|
||||
@ -1135,9 +1134,8 @@ public:
|
||||
return {};
|
||||
|
||||
auto result = castColumn(potential_const_column, result_type);
|
||||
if (!isColumnConst(*result)) {
|
||||
if (!isColumnConst(*result))
|
||||
return {};
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user