Skip to content

Commit

Permalink
support DataSketches theta sketche
Browse files Browse the repository at this point in the history
Signed-off-by: chenminghua8 <[email protected]>
  • Loading branch information
chenminghua8 committed Jan 2, 2025
1 parent d02447e commit 1ba8808
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion be/src/exprs/agg/ds_theta_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "column/array_column.h"
#include "column/column_helper.h"
#include "exprs/agg/ds_state.h"

#include "types/ds_theta_sketch.h"

namespace starrocks {
Expand Down
4 changes: 2 additions & 2 deletions be/src/types/ds_theta_sketch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ bool DataSketchesTheta::deserialize(const Slice& slice) {
try {
auto sketch_warp = theta_wrapped_type::wrap((uint8_t*)slice.data, slice.size);
if (_sketch_union == nullptr) {
_sketch_union = std::make_unique<theta_union_type>(
theta_union_type::builder(alloc_type(_memory_usage)).build());
_sketch_union =
std::make_unique<theta_union_type>(theta_union_type::builder(alloc_type(_memory_usage)).build());
}
_sketch_union->update(sketch_warp);
} catch (std::logic_error& e) {
Expand Down

0 comments on commit 1ba8808

Please sign in to comment.