| 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 | return state; |
| 163 | } |
| 164 | |
| 165 | Result<TypeHolder> ResolveOutputType(KernelContext* ctx, const std::vector<TypeHolder>&) { |
| 166 | return checked_cast<PivotImpl*>(ctx->state())->out_type(); |
nothing calls this directly
no test coverage detected