From d4f73322a093c053c60ec0eee2a7bd08f335f7f0 Mon Sep 17 00:00:00 2001 From: Weston Pace Date: Fri, 14 Apr 2023 13:08:11 -0700 Subject: [PATCH] GH-35144: [C++] Fix a unit test broken when the output order of the aggregate node changed (#35145) ### Rationale for this change The unit test was broken by a recent change and needed to be updated. ### What changes are included in this PR? The unit test has been updated to expect the correct order. ### Are these changes tested? Yes ### Are there any user-facing changes? No * Closes: #35144 Authored-by: Weston Pace Signed-off-by: Weston Pace --- cpp/src/arrow/acero/hash_aggregate_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/acero/hash_aggregate_test.cc b/cpp/src/arrow/acero/hash_aggregate_test.cc index 3233441852027..dfeae61a6cda6 100644 --- a/cpp/src/arrow/acero/hash_aggregate_test.cc +++ b/cpp/src/arrow/acero/hash_aggregate_test.cc @@ -155,7 +155,7 @@ TEST(AggregateSchema, SingleKeyAndSegmentKey) { aggregate::MakeOutputSchema(input_schema, {FieldRef("y")}, {FieldRef("z")}, {{"hash_count", nullptr, "x", "hash_count"}})); AssertSchemaEqual( - schema({field("y", int32()), field("z", int32()), field("hash_count", int64())}), + schema({field("z", int32()), field("y", int32()), field("hash_count", int64())}), output_schema); }