| 4554 | } |
| 4555 | |
| 4556 | void AssertStreamNext(struct ArrowArrayStream* c_stream, const RecordBatch& expected) { |
| 4557 | struct ArrowArray c_array; |
| 4558 | ASSERT_EQ(0, c_stream->get_next(c_stream, &c_array)); |
| 4559 | |
| 4560 | ArrayExportGuard guard(&c_array); |
| 4561 | ASSERT_FALSE(ArrowArrayIsReleased(&c_array)); |
| 4562 | |
| 4563 | ASSERT_OK_AND_ASSIGN(auto batch, ImportRecordBatch(&c_array, expected.schema())); |
| 4564 | AssertBatchesEqual(expected, *batch); |
| 4565 | } |
| 4566 | |
| 4567 | void AssertStreamNext(struct ArrowArrayStream* c_stream, const Array& expected) { |
| 4568 | struct ArrowArray c_array; |
nothing calls this directly
no test coverage detected