MCPcopy Create free account
hub / github.com/apache/impala / DsHllUnionUpdate

Method DsHllUnionUpdate

be/src/exprs/aggregate-functions-ir.cc:2467–2478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2465}
2466
2467void AggregateFunctions::DsHllUnionUpdate(FunctionContext* ctx, const StringVal& src,
2468 StringVal* dst) {
2469 if (src.is_null) return;
2470 DCHECK(!dst->is_null);
2471 DCHECK_EQ(dst->len, sizeof(datasketches::hll_union));
2472 try {
2473 reinterpret_cast<datasketches::hll_union*>(dst->ptr)
2474 ->update(datasketches::hll_sketch::deserialize(src.ptr, src.len));
2475 } catch (const std::exception& e) {
2476 LogSketchDeserializationError(ctx, e);
2477 }
2478}
2479
2480StringVal AggregateFunctions::DsHllUnionSerialize(FunctionContext* ctx,
2481 const StringVal& src) {

Callers

nothing calls this directly

Calls 3

deserializeFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected