Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HangyuanLiu committed Sep 23, 2019
1 parent 839b31f commit 6ed3dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/exprs/hll_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ std::string HllFunctions::init_empty_hll() {
std::unique_ptr<HyperLogLog> hll;
hll.reset(new HyperLogLog());
buf.resize(HLL_EMPTY_SIZE);
hll->serialize((char*)buf.c_str());
hll->serialize((uint8_t*)buf.c_str());
return buf;
}

Expand Down Expand Up @@ -60,7 +60,7 @@ void HllFunctions::hll_init(FunctionContext *, StringVal* dst) {
dst->ptr = (uint8_t*)new HyperLogLog();
}
StringVal HllFunctions::empty_hll(FunctionContext* ctx) {
return AnyValUtil::from_string_temp(ctx, hll_empty_buf);
return AnyValUtil::from_string_temp(ctx, hll_empty_buffer);
}

template <typename T>
Expand Down

0 comments on commit 6ed3dfb

Please sign in to comment.