From 209f5380b4b45c528459735964969f81b527d131 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Mon, 10 Jun 2024 18:52:09 -0400 Subject: [PATCH] print status --- crash-repro/main.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crash-repro/main.cc b/crash-repro/main.cc index f7eb0fb38f15a..40d1607699abe 100644 --- a/crash-repro/main.cc +++ b/crash-repro/main.cc @@ -46,6 +46,14 @@ arrow::Result> make_table() { std::vector doubleValues = {1.0, 2.0, 3.0, 4.0}; std::vector int32Values = {1, 2, 3, 4}; std::cout << "1" << std::endl; + auto maybeDoubleArray = make_numeric_array(doubleValues); + if (!maybeDoubleArray.ok()) { + std::cout << "Status is : " << maybeDoubleArray.status().mesage() << std::endl; + } + + ARROW_ASSIGN_OR_RAISE(auto doubleArray, maybeDoubleArray); + + std::cout << "after " << std::endl; ARROW_ASSIGN_OR_RAISE(auto doubleArray, make_numeric_array(doubleValues)); std::cout << "2" << std::endl;