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 cc14a26 commit 021379b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Functions/LeastGreatestGeneric.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ class FunctionLeastGreatestGeneric : public IFunction

ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr & result_type, size_t input_rows_count) const override
{
size_t num_arguments = arguments.size();
if (1 == num_arguments)
if (arguments.size() == 1)
return arguments[0].column;

Columns converted_columns;
for (size_t arg = 0; arg < num_arguments; ++arg)
for (size_t arg = 0; arg < arguments.size(); ++arg)
{
if (arguments[arg].type->onlyNull())
continue; /// ignore NULL arguments
Expand Down

0 comments on commit 021379b

Please sign in to comment.