From d73a6efa42acdfb1768c43c7a835f610d6fa5989 Mon Sep 17 00:00:00 2001 From: Alexey Arno Date: Fri, 5 Aug 2016 12:35:37 +0300 Subject: [PATCH] dbms: Cleanup [#METR-19266] --- dbms/src/Functions/FunctionsNull.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbms/src/Functions/FunctionsNull.cpp b/dbms/src/Functions/FunctionsNull.cpp index 71770d750b6..0e42d63f41b 100644 --- a/dbms/src/Functions/FunctionsNull.cpp +++ b/dbms/src/Functions/FunctionsNull.cpp @@ -165,14 +165,14 @@ void FunctionCoalesce::executeImpl(Block & block, const ColumnNumbers & argument ColumnNumbers new_args; for (size_t i = 0; i < arguments.size(); ++i) { - new_args.push_back(result + i); + new_args.push_back(result + i + 1); new_args.push_back(arguments[i]); } - /// For the NULL value. + /// Argument corresponding to the fallback NULL value. new_args.push_back(block.columns()); - /// Append a NULL column. + /// Append a fallback NULL column. ColumnWithTypeAndName elem; elem.column = std::make_shared(block.rowsInFirstColumn(), Null()); elem.type = std::make_shared();