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

Function CheckOptions

cpp/src/arrow/compute/kernels/aggregate_mode.cc:420–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418};
419
420Status CheckOptions(KernelContext* ctx) {
421 if (ctx->state() == nullptr) {
422 return Status::Invalid("Mode requires ModeOptions");
423 }
424 const ModeOptions& options = ModeState::Get(ctx);
425 if (options.n <= 0) {
426 return Status::Invalid("ModeOptions::n must be strictly positive");
427 }
428 return Status::OK();
429}
430
431template <typename OutTypeUnused, typename InType>
432struct ModeExecutor {

Callers 2

ExecMethod · 0.70
ExecMethod · 0.70

Calls 4

InvalidFunction · 0.50
GetFunction · 0.50
OKFunction · 0.50
stateMethod · 0.45

Tested by

no test coverage detected