| 3629 | |
| 3630 | template <typename T> |
| 3631 | void 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 | |
| 3639 | template <> |
| 3640 | void AggregateFunctions::FirstValIgnoreNullsUpdate(FunctionContext* ctx, |
nothing calls this directly
no test coverage detected