MCPcopy Create free account
hub / github.com/apache/arrow / CheckWholeAggregateCase

Function CheckWholeAggregateCase

cpp/src/arrow/engine/substrait/function_test.cc:647–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647void 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
663void CheckGroupedAggregateCase(const AggregateTestCase& test_case) {
664 ARROW_SCOPED_TRACE("function = ", test_case.function_id.ToString());

Callers 1

CheckAggregateCasesFunction · 0.85

Calls 8

PlanFromAggregateCaseFunction · 0.85
AssertTablesEqualFunction · 0.85
finishedMethod · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.70
StartProducingMethod · 0.45
SelectColumnsMethod · 0.45
num_columnsMethod · 0.45

Tested by

no test coverage detected