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

Method Exec

cpp/src/arrow/compute/kernels/aggregate_quantile.cc:332–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 }
331
332 Status Exec(KernelContext* ctx, const ArraySpan& values, ExecResult* out) {
333 const QuantileOptions& options = QuantileState::Get(ctx);
334
335 // count values in all chunks, ignore nulls
336 int64_t in_length = 0;
337 if ((options.skip_nulls || (!options.skip_nulls && values.GetNullCount() == 0)) &&
338 (values.length - values.GetNullCount() >= options.min_count)) {
339 in_length = CountValues<CType>(values, this->min, this->counts.data());
340 }
341
342 return ComputeQuantile(ctx, options, in_length, out);
343 }
344
345 Status Exec(KernelContext* ctx, const ChunkedArray& values, Datum* out) {
346 const QuantileOptions& options = QuantileState::Get(ctx);

Callers

nothing calls this directly

Calls 7

GetNullCountMethod · 0.80
array_dataMethod · 0.80
GetFunction · 0.50
OKFunction · 0.50
dataMethod · 0.45
null_countMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected