| 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); |
nothing calls this directly
no test coverage detected