This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 0af2a90fb7 ARROW-17420: [C++][FlightRPC] Fix schema validation in 
Flight SQL integration test (#13897)
0af2a90fb7 is described below

commit 0af2a90fb78a899de7014114491f1233bbb005fe
Author: David Li <[email protected]>
AuthorDate: Tue Aug 16 20:03:22 2022 -0400

    ARROW-17420: [C++][FlightRPC] Fix schema validation in Flight SQL 
integration test (#13897)
    
    Authored-by: David Li <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 cpp/src/arrow/flight/integration_tests/test_integration.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cpp/src/arrow/flight/integration_tests/test_integration.cc 
b/cpp/src/arrow/flight/integration_tests/test_integration.cc
index 2e5609b6c0..7bdd27da79 100644
--- a/cpp/src/arrow/flight/integration_tests/test_integration.cc
+++ b/cpp/src/arrow/flight/integration_tests/test_integration.cc
@@ -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();
   }
 

Reply via email to