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

Method FirstValIgnoreNullsUpdate

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

Source from the content-addressed store, hash-verified

3629
3630template <typename T>
3631void AggregateFunctions::FirstValIgnoreNullsUpdate(FunctionContext*, const T& src,
3632 T* dst) {
3633 // Store the first non-null value encountered, unlike FirstValUpdate which always stores
3634 // the first value even if it is null.
3635 if (!dst->is_null || src.is_null) return;
3636 *dst = src;
3637}
3638
3639template <>
3640void AggregateFunctions::FirstValIgnoreNullsUpdate(FunctionContext* ctx,

Callers

nothing calls this directly

Calls 1

CopyStringValFunction · 0.85

Tested by

no test coverage detected