mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 01:12:12 +00:00
Fix for 'Result column is not empty' bug found by fuzzer
This commit is contained in:
parent
8506018469
commit
7ee94d6a90
@ -584,6 +584,12 @@ static void executeAction(const ExpressionActions::Action & action, ExecutionCon
|
|||||||
{
|
{
|
||||||
/// Do not execute function if it's result is already known.
|
/// Do not execute function if it's result is already known.
|
||||||
res_column.column = action.node->column->cloneResized(num_rows);
|
res_column.column = action.node->column->cloneResized(num_rows);
|
||||||
|
/// But still need to remove unused arguments.
|
||||||
|
for (const auto & argument : action.arguments)
|
||||||
|
{
|
||||||
|
if (!argument.needed_later)
|
||||||
|
columns[argument.pos] = {};
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user