| 629 | } |
| 630 | |
| 631 | std::shared_ptr<ArrayData> BoxValueCounts(const std::shared_ptr<ArrayData>& uniques, |
| 632 | const std::shared_ptr<ArrayData>& counts) { |
| 633 | auto data_type = |
| 634 | struct_({field(kValuesFieldName, uniques->type), field(kCountsFieldName, int64())}); |
| 635 | ArrayVector children = {MakeArray(uniques), MakeArray(counts)}; |
| 636 | return std::make_shared<StructArray>(data_type, uniques->length, children)->data(); |
| 637 | } |
| 638 | |
| 639 | Status ValueCountsFinalize(KernelContext* ctx, std::vector<Datum>* out) { |
| 640 | auto hash_impl = checked_cast<HashKernel*>(ctx->state()); |
no test coverage detected