Skip to content

Commit

Permalink
ARROW-17420: [C++][FlightRPC] Fix schema validation in Flight SQL int…
Browse files Browse the repository at this point in the history
…egration test
  • Loading branch information
lidavidm committed Aug 16, 2022
1 parent f6ad4bf commit f6874a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cpp/src/arrow/flight/integration_tests/test_integration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,10 @@ class FlightSqlScenario : public Scenario {

ARROW_ASSIGN_OR_RAISE(auto actual_schema, reader->GetSchema());

AssertSchemaEqual(expected_schema, actual_schema);

if (!actual_schema->Equals(*expected_schema, /*check_metadata=*/true)) {
return Status::Invalid("Schemas do not match. Expected:\n", *expected_schema,
"\nActual:\n", *actual_schema);
}
return Status::OK();
}

Expand Down

0 comments on commit f6874a1

Please sign in to comment.