Skip to content

Commit

Permalink
chore: refine comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Willendless committed Aug 6, 2022
1 parent a2b67c6 commit 81ebb92
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dbms/src/Functions/FunctionsString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <fmt/core.h>

#include <boost/algorithm/string/predicate.hpp>
#include <cstring>
#include <ext/range.h>

namespace DB
Expand Down Expand Up @@ -5520,8 +5519,8 @@ class FunctionElt : public IFunction

/// no need to set res_null_map, since its default value is 0

/// src col might be ColumnConst(Nullable(ColumnString)) or Nullable(ColumnString) or ColumnString
/// if it is ColumnConst then we should treat its first element as the ith element
/// src col might be ColumnConst(Nullable(ColumnString)) or ColumnCost(ColumnString) or Nullable(ColumnString) or ColumnString
/// if it is ColumnConst(...) then we should treat its first element as the ith element
size_t srci = dsti;
const auto * col_nullable_str = src->isColumnConst()
? (srci = 0, checkAndGetColumnConst<ColumnString>(src.get(), true)->getDataColumnPtr().get())
Expand Down

0 comments on commit 81ebb92

Please sign in to comment.