Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions be/src/vec/functions/function_hll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ struct HllToBase64 {
last_ser_size = cur_ser_size;
ser_buff.resize(cur_ser_size);
}
hll_val.serialize(reinterpret_cast<uint8_t*>(ser_buff.data()));
auto outlen = base64_encode((const unsigned char*)ser_buff.data(), cur_ser_size,
size_t real_size = hll_val.serialize(reinterpret_cast<uint8_t*>(ser_buff.data()));
auto outlen = base64_encode((const unsigned char*)ser_buff.data(), real_size,
chars_data + encoded_offset);
DCHECK(outlen > 0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2504,3 +2504,6 @@
-- !sql2 --
1 2 1025 1028

-- !test --
1028

Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ suite("test_http_stream_compress", "p0") {
}
sql "sync"
qt_sql2 "select k1, k2, bitmap_union_count(v1), HLL_UNION_AGG(v2) from ${tableName2} group by k1, k2 order by k1"
qt_test "select HLL_CARDINALITY(hll_from_base64(hll_to_base64(v2))) from test_http_stream_bz4;"
} finally {
try_sq2 "DROP TABLE IF EXISTS ${tableName2}"
}
Expand Down
Loading