| 3647 | |
| 3648 | template <typename T> |
| 3649 | void AggregateFunctions::OffsetFnInit(FunctionContext* ctx, T* dst) { |
| 3650 | DCHECK_EQ(ctx->GetNumArgs(), 3); |
| 3651 | DCHECK(ctx->IsArgConstant(1)); |
| 3652 | DCHECK(ctx->IsArgConstant(2)); |
| 3653 | DCHECK_EQ(ctx->GetArgType(0)->type, ctx->GetArgType(2)->type); |
| 3654 | *dst = *static_cast<T*>(ctx->GetConstantArg(2)); |
| 3655 | } |
| 3656 | |
| 3657 | template <> |
| 3658 | void AggregateFunctions::OffsetFnInit(FunctionContext* ctx, StringVal* dst) { |
nothing calls this directly
no test coverage detected