Skip to content

Commit

Permalink
print status
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Jun 10, 2024
1 parent 125b470 commit 209f538
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crash-repro/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ arrow::Result<std::shared_ptr<arrow::Table>> make_table() {
std::vector<double> doubleValues = {1.0, 2.0, 3.0, 4.0};
std::vector<int32_t> 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;

Expand Down

0 comments on commit 209f538

Please sign in to comment.