| 426 | static constexpr int kMaxValueRange = 65536; |
| 427 | |
| 428 | Status Exec(KernelContext* ctx, const ArraySpan& values, ExecResult* out) { |
| 429 | if (values.length - values.GetNullCount() >= kMinArraySize) { |
| 430 | CType min, max; |
| 431 | std::tie(min, max) = GetMinMax<CType>(values); |
| 432 | if (static_cast<uint64_t>(max) - static_cast<uint64_t>(min) <= kMaxValueRange) { |
| 433 | return CountQuantiler<InType>(min, max).Exec(ctx, values, out); |
| 434 | } |
| 435 | } |
| 436 | return SortQuantiler<InType>().Exec(ctx, values, out); |
| 437 | } |
| 438 | |
| 439 | Status Exec(KernelContext* ctx, const ChunkedArray& values, Datum* out) { |
| 440 | if (values.length() - values.null_count() >= kMinArraySize) { |
nothing calls this directly
no test coverage detected