Skip to content

Commit

Permalink
Update LeastGreatestGeneric.h
Browse files Browse the repository at this point in the history
  • Loading branch information
rschu1ze authored Nov 28, 2024
1 parent 021379b commit e557059
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Functions/LeastGreatestGeneric.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ class FunctionLeastGreatestGeneric : public IFunction
return arguments[0].column;

Columns converted_columns;
for (size_t arg = 0; arg < arguments.size(); ++arg)
for (const auto & argument : arguments)
{
if (arguments[arg].type->onlyNull())
if (argument.type->onlyNull())
continue; /// ignore NULL arguments
auto converted_col = castColumn(arguments[arg], result_type)->convertToFullColumnIfConst();
auto converted_col = castColumn(argument, result_type)->convertToFullColumnIfConst();
converted_columns.emplace_back(converted_col);
}

Expand Down

0 comments on commit e557059

Please sign in to comment.