Skip to content

Commit

Permalink
fix spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed Jun 10, 2024
1 parent 62d7713 commit 125b470
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crash-repro/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ arrow::Result<std::shared_ptr<arrow::Array>> make_numeric_array(std::vector<CTyp
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::endl1;
std::cout << "1" << std::endl;
ARROW_ASSIGN_OR_RAISE(auto doubleArray, make_numeric_array(doubleValues));
std::cout << "2" << std::endl1;
std::cout << "2" << std::endl;

ARROW_ASSIGN_OR_RAISE(auto int32Array, make_numeric_array(int32Values));
std::cout << "3" << std::endl1;
std::cout << "3" << std::endl;

std::vector<std::shared_ptr<arrow::Array>> columns = {doubleArray, int32Array};
auto tableSchema = arrow::schema({arrow::field("A", doubleArray->type()), arrow::field("B", int32Array->type())});
Expand All @@ -77,10 +77,10 @@ int main(int argc, char* argv[]) {
std::cout << "Filename is " << filename << std::endl;

auto maybe_table = make_table();
std::cout << "4" << std::endl1;
std::cout << "4" << std::endl;

if (!maybe_table.ok()) { return 1; }
std::cout << "5" << std::endl1;
std::cout << "5" << std::endl;

// auto table = maybe_table.ValueOrDie();
// std::cout << table->ToString() << std::endl;
Expand Down

0 comments on commit 125b470

Please sign in to comment.