| 155 | }; |
| 156 | |
| 157 | Result<std::unique_ptr<KernelState>> PivotInit(KernelContext* ctx, |
| 158 | const KernelInitArgs& args) { |
| 159 | const auto& options = checked_cast<const PivotWiderOptions&>(*args.options); |
| 160 | auto state = std::make_unique<PivotImpl>(); |
| 161 | RETURN_NOT_OK(state->Init(options, args.inputs, ctx->exec_context())); |
| 162 | // GH-45718: This can be simplified once we drop the R openSUSE155 crossbow |
| 163 | // job |
| 164 | // R build with openSUSE155 requires an explicit shared_ptr construction |
| 165 | return std::unique_ptr<KernelState>(std::move(state)); |
| 166 | } |
| 167 | |
| 168 | Result<TypeHolder> ResolveOutputType(KernelContext* ctx, const std::vector<TypeHolder>&) { |
| 169 | return checked_cast<PivotImpl*>(ctx->state())->out_type(); |
nothing calls this directly
no test coverage detected