mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 19:45:11 +00:00
Update ActionsDAG.cpp
This commit is contained in:
parent
48d21bb03b
commit
54a7e2158c
@ -219,8 +219,8 @@ const ActionsDAG::Node & ActionsDAG::addFunction(
|
||||
column = node.function_base->getConstantResultForNonConstArguments(arguments, node.result_type);
|
||||
}
|
||||
|
||||
if (all_const && column && !isColumnConst(*column) && column->size() <= 1)
|
||||
column = ColumnConst::create(std::move(column), column->size());
|
||||
if (all_const && column && !isColumnConst(*column) && column->size() == 1)
|
||||
column = ColumnConst::create(std::move(column), 1);
|
||||
|
||||
/// If the result is not a constant, just in case, we will consider the result as unknown.
|
||||
if (column && isColumnConst(*column))
|
||||
|
Loading…
Reference in New Issue
Block a user