extracts the expected output for one segment
| 5413 | |
| 5414 | // extracts the expected output for one segment |
| 5415 | Result<std::shared_ptr<Array>> GetEmptySegmentKeyOutput() { |
| 5416 | ARROW_ASSIGN_OR_RAISE(auto chunked, GetSingleSegmentKeyOutput()); |
| 5417 | ARROW_ASSIGN_OR_RAISE(auto table, Table::FromChunkedStructArray(chunked)); |
| 5418 | ARROW_ASSIGN_OR_RAISE(auto removed, table->RemoveColumn(0)); |
| 5419 | auto sliced = removed->Slice(0, 4); |
| 5420 | ARROW_ASSIGN_OR_RAISE(auto batch, sliced->CombineChunksToBatch()); |
| 5421 | return batch->ToStructArray(); |
| 5422 | } |
| 5423 | |
| 5424 | void TestEmptySegmentKey(GroupByFunction group_by, |
| 5425 | std::function<Result<std::shared_ptr<Table>>()> get_table) { |
nothing calls this directly
no test coverage detected