Verifies that the data is valid Arrow and ensures it's not null.
| 73 | |
| 74 | // Verifies that the data is valid Arrow and ensures it's not null. |
| 75 | void ValidateBatch(const ExecBatch& batch) { |
| 76 | for (const Datum& d : batch.values) { |
| 77 | ASSERT_EQ(d.kind(), Datum::ARRAY); |
| 78 | const auto array = d.make_array(); |
| 79 | ASSERT_OK(array->ValidateFull()); |
| 80 | TestInitialized(*array); |
| 81 | ASSERT_EQ(array->data()->buffers[0].get(), nullptr); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | // Verifies that each element is seen exactly once, and that it's between min and max |
| 86 | // inclusive |
no test coverage detected