extracts the expected output for one segment
| 5336 | |
| 5337 | // extracts the expected output for one segment |
| 5338 | Result<std::shared_ptr<Array>> GetEmptySegmentKeyOutput() { |
| 5339 | ARROW_ASSIGN_OR_RAISE(auto chunked, GetSingleSegmentKeyOutput()); |
| 5340 | ARROW_ASSIGN_OR_RAISE(auto table, Table::FromChunkedStructArray(chunked)); |
| 5341 | ARROW_ASSIGN_OR_RAISE(auto removed, table->RemoveColumn(0)); |
| 5342 | auto sliced = removed->Slice(0, 4); |
| 5343 | ARROW_ASSIGN_OR_RAISE(auto batch, sliced->CombineChunksToBatch()); |
| 5344 | return batch->ToStructArray(); |
| 5345 | } |
| 5346 | |
| 5347 | void TestEmptySegmentKey(GroupByFunction group_by, |
| 5348 | std::function<Result<std::shared_ptr<Table>>()> get_table) { |
nothing calls this directly
no test coverage detected