Skip to content

Commit

Permalink
Addressed PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
minhancao committed Apr 22, 2024
1 parent 2a45bdc commit 8abad48
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions velox/functions/prestosql/aggregates/MinMaxAggregates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,7 @@ struct MinMaxNAccumulator {
std::is_same_v<int128_t, T>,
AlignedStlAllocator<T, sizeof(int128_t)>,
StlAllocator<T>>;
using Heap = std::vector<T, Allocator>;
Heap heapValues;
std::vector<T, Allocator> heapValues;

explicit MinMaxNAccumulator(HashStringAllocator* allocator)
: heapValues{Allocator(allocator)} {}
Expand Down Expand Up @@ -972,7 +971,7 @@ exec::AggregateRegistrationResult registerMinMax(
if (inputType->isLongDecimal()) {
return std::make_unique<TNumericN<int128_t>>(resultType);
}
VELOX_NYI();
VELOX_UNREACHABLE();
default:
VELOX_CHECK(
false,
Expand Down

0 comments on commit 8abad48

Please sign in to comment.