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 (#13897)

Authored-by: David Li <li.davidm96@gmail.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
lidavidm authored Aug 17, 2022
1 parent 102b9bd commit 0af2a90
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 0af2a90

Please sign in to comment.