MCPcopy Create free account
hub / github.com/apache/arrow / PivotInit

Function PivotInit

cpp/src/arrow/compute/kernels/aggregate_pivot.cc:157–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155};
156
157Result<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
168Result<TypeHolder> ResolveOutputType(KernelContext* ctx, const std::vector<TypeHolder>&) {
169 return checked_cast<PivotImpl*>(ctx->state())->out_type();

Callers

nothing calls this directly

Calls 2

exec_contextMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected