Skip to content

Commit eea607f

Browse files
committed
Update test
1 parent 76f6ef3 commit eea607f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

cpp/src/arrow/acero/plan_test.cc

+8-5
Original file line numberDiff line numberDiff line change
@@ -1263,17 +1263,20 @@ TEST(ExecPlanExecution, SourceFilterProjectGroupedSumFilter) {
12631263
}
12641264
}
12651265

1266-
TEST(ExecPlanExecution, TestNamesSizeMismatch) {
1266+
TEST(ExecPlanExecution, ProjectNamesSizeMismatch) {
12671267
auto input = MakeGroupableBatches();
12681268

12691269
Declaration plan = Declaration::Sequence(
12701270
{{"source", SourceNodeOptions{input.schema, input.gen(true, /*slow=*/false)}},
1271-
{"project", ProjectNodeOptions{{field_ref("str"),
1272-
call("multiply", {field_ref("i32"), literal(2)})},
1273-
{"a"}}}}); // expected 2 names but only 1 provided
1271+
{"project", ProjectNodeOptions{
1272+
/*expressions=*/{field_ref("str"),
1273+
call("multiply", {field_ref("i32"), literal(2)})},
1274+
/*names=*/{"a"}}}}); // expected 2 names but only 1 provided
12741275

12751276
EXPECT_RAISES_WITH_MESSAGE_THAT(
1276-
Invalid, ::testing::HasSubstr("Check failed: (names.size()) == (exprs.size())"),
1277+
Invalid,
1278+
::testing::HasSubstr(
1279+
"Project node's size of names 1 doesn't match size of expressions 2"),
12771280
DeclarationToTable(std::move(plan)));
12781281
}
12791282

0 commit comments

Comments
 (0)