diff --git a/crash-repro/main.cc b/crash-repro/main.cc index d74c3eaf37804..9f99366ec1a1d 100644 --- a/crash-repro/main.cc +++ b/crash-repro/main.cc @@ -29,13 +29,13 @@ template -arrow::Result> make_numeric_array(std::vector values) { +arrow::Result> make_numeric_array() { //std::vector values) { using TypeClass = typename arrow::CTypeTraits::ArrowType; - - std::cout << "create builder" << std::endl; + std::vector values = {1, 2, 3}; + std::cout << "create builder" << std::endl; arrow::NumericBuilder builder; - std::cout << "append values" << std::endl; + std::cout << "append values" << std::endl; ARROW_RETURN_NOT_OK(builder.AppendValues(values)); std::cout << "done values" << std::endl; @@ -48,10 +48,10 @@ arrow::Result> make_numeric_array(std::vector> make_table() { - std::vector doubleValues = {1, 2, 3, 4}; - std::vector int32Values = {1, 2, 3, 4}; + //std::vector doubleValues = {1, 2, 3, 4}; + st//d::vector int32Values = {1, 2, 3, 4}; std::cout << "1" << std::endl; - auto maybeDoubleArray = make_numeric_array(doubleValues); + auto maybeDoubleArray = make_numeric_array(); //doubleValues); if (!maybeDoubleArray.ok()) { std::cout << "Status is : " << maybeDoubleArray.status().message() << std::endl; } @@ -62,7 +62,7 @@ arrow::Result> make_table() { std::cout << "2" << std::endl; - ARROW_ASSIGN_OR_RAISE(auto int32Array, make_numeric_array(int32Values)); + ARROW_ASSIGN_OR_RAISE(auto int32Array, make_numeric_array()); //int32Values)); std::cout << "3" << std::endl; std::vector> columns = {doubleArray, int32Array};