Skip to content

Commit

Permalink
Remove implicit fall through.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgpai committed Mar 14, 2024
1 parent 399345d commit 220dcba
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions velox/functions/sparksql/aggregates/SumAggregate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,11 @@ exec::AggregateRegistrationResult registerSum(
BIGINT());
}
case TypeKind::HUGEINT: {
if (inputType->isLongDecimal()) {
// If inputType is long decimal,
// its output type is always long decimal.
return std::make_unique<exec::SimpleAggregateAdapter<
DecimalSumAggregate<int128_t, int128_t>>>(resultType);
}
VELOX_CHECK(inputType->isLongDecimal());
// If inputType is long decimal,
// its output type is always long decimal.
return std::make_unique<exec::SimpleAggregateAdapter<
DecimalSumAggregate<int128_t, int128_t>>>(resultType);
}
case TypeKind::REAL:
if (resultType->kind() == TypeKind::REAL) {
Expand Down

0 comments on commit 220dcba

Please sign in to comment.