Skip to content

Commit

Permalink
[fix](compile) fix macos compile failed
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzxl1993 committed Nov 18, 2024
1 parent 20473c1 commit 334c9d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class AggregateFunctionApproxTopSum final
void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf,
Arena* arena) const override {
auto readStringBinaryInto = [](Arena& arena, BufferReadable& buf) {
size_t size = 0;
uint64_t size = 0;
read_var_uint(size, buf);

if (UNLIKELY(size > DEFAULT_MAX_STRING_SIZE)) {
Expand All @@ -105,7 +105,7 @@ class AggregateFunctionApproxTopSum final
auto& set = this->data(place).value;
set.clear();

size_t size = 0;
uint64_t size = 0;
read_var_uint(size, buf);
if (UNLIKELY(size > TOP_K_MAX_SIZE)) {
throw Exception(ErrorCode::INTERNAL_ERROR,
Expand Down

0 comments on commit 334c9d1

Please sign in to comment.