Fix for 'Result column is not empty' bug found by fuzzer

This commit is contained in:
Alexander Gololobov 2023-02-14 15:34:04 +01:00
parent 8506018469
commit 7ee94d6a90

View File

@ -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;
} }