extracts the expected output for one segment
| 5298 | |
| 5299 | // extracts the expected output for one segment |
| 5300 | Result<std::shared_ptr<Array>> GetEmptySegmentKeyOutput() { |
| 5301 | ARROW_ASSIGN_OR_RAISE(auto chunked, GetSingleSegmentKeyOutput()); |
| 5302 | ARROW_ASSIGN_OR_RAISE(auto table, Table::FromChunkedStructArray(chunked)); |
| 5303 | ARROW_ASSIGN_OR_RAISE(auto removed, table->RemoveColumn(0)); |
| 5304 | auto sliced = removed->Slice(0, 4); |
| 5305 | ARROW_ASSIGN_OR_RAISE(auto batch, sliced->CombineChunksToBatch()); |
| 5306 | return batch->ToStructArray(); |
| 5307 | } |
| 5308 | |
| 5309 | void TestEmptySegmentKey(GroupByFunction group_by, |
| 5310 | std::function<Result<std::shared_ptr<Table>>()> get_table) { |
nothing calls this directly
no test coverage detected