Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Nov 29, 2024
1 parent 61ffd2e commit ef14f24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion velox/functions/sparksql/ConcatWs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ConcatWs : public exec::VectorFunction {
const std::vector<std::optional<std::string>>& constantStrings,
const std::vector<exec::LocalDecodedVector>& decodedStringArgs,
const exec::LocalDecodedVector& decodedSeparator) const {
size_t totalResultBytes = 0;
uint64_t totalResultBytes = 0;
rows.applyToSelected([&](auto row) {
// NULL separator produces NULL result.
if (!isConstantSeparator() && decodedSeparator->isNullAt(row)) {
Expand Down Expand Up @@ -95,6 +95,7 @@ class ConcatWs : public exec::VectorFunction {
totalResultBytes += (allElements - 1) * separatorSize;
}
});
VELOX_USER_CHECK_LE(totalResultBytes, UINT32_MAX);
return totalResultBytes;
}

Expand Down

0 comments on commit ef14f24

Please sign in to comment.