| 177 | } |
| 178 | |
| 179 | Status Exec(KernelContext* ctx, const ArraySpan& values, ExecResult* out) { |
| 180 | const QuantileOptions& options = QuantileState::Get(ctx); |
| 181 | |
| 182 | // copy all chunks to a buffer, ignore nulls and nans |
| 183 | std::vector<CType, Allocator> in_buffer(Allocator(ctx->memory_pool())); |
| 184 | FillBuffer(options, values, values.length, values.GetNullCount(), &in_buffer); |
| 185 | return ComputeQuantile(ctx, options, values.type->GetSharedPtr(), in_buffer, out); |
| 186 | } |
| 187 | |
| 188 | Status Exec(KernelContext* ctx, const ChunkedArray& values, Datum* out) { |
| 189 | const QuantileOptions& options = QuantileState::Get(ctx); |
no test coverage detected