| 645 | } |
| 646 | |
| 647 | void CheckWholeAggregateCase(const AggregateTestCase& test_case) { |
| 648 | std::shared_ptr<Table> output_table; |
| 649 | std::shared_ptr<acero::ExecPlan> plan = |
| 650 | PlanFromAggregateCase(test_case, &output_table, /*with_keys=*/false); |
| 651 | |
| 652 | plan->StartProducing(); |
| 653 | ASSERT_FINISHES_OK(plan->finished()); |
| 654 | |
| 655 | ASSERT_OK_AND_ASSIGN(output_table, |
| 656 | output_table->SelectColumns({output_table->num_columns() - 1})); |
| 657 | |
| 658 | std::shared_ptr<Table> expected_output = |
| 659 | GetOutputTableForAggregateCase(test_case.output_type, test_case.combined_output); |
| 660 | AssertTablesEqual(*expected_output, *output_table, /*same_chunk_layout=*/false); |
| 661 | } |
| 662 | |
| 663 | void CheckGroupedAggregateCase(const AggregateTestCase& test_case) { |
| 664 | ARROW_SCOPED_TRACE("function = ", test_case.function_id.ToString()); |
no test coverage detected