| 260 | }; |
| 261 | |
| 262 | Status DoNonZero(const std::vector<ArraySpan>& arrays, int64_t total_length, |
| 263 | std::shared_ptr<ArrayData>* out) { |
| 264 | UInt64Builder builder; |
| 265 | RETURN_NOT_OK(builder.Reserve(total_length)); |
| 266 | |
| 267 | NonZeroVisitor visitor(&builder, arrays); |
| 268 | RETURN_NOT_OK(VisitTypeInline(*arrays[0].type, &visitor)); |
| 269 | return builder.FinishInternal(out); |
| 270 | } |
| 271 | |
| 272 | Status IndicesNonZeroExec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 273 | std::shared_ptr<ArrayData> result; |
no test coverage detected