Ai-Ya-Ya opened a new issue, #49480:
URL: https://github.com/apache/arrow/issues/49480

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   After upgrading from Arrow 21.0.0 to 23.0.1, writing a table to file yields 
the following error: 
   
   ```
   Floating point exception (core dumped)
   ```
   
   at the point of `WriteTable` or `writer->WriteRecordBatch`. Disabling 
statistics does not change the fact that it errors. 
   
   Minimal reproducible function below. 
   
   ```c++
   arrow::Status WriteMinimalParquet(const std::string &filename) {
     auto schema = arrow::schema({arrow::field("id", arrow::int64())});
   
     arrow::Int64Builder id_builder;
   
     for (int i = 0; i < 100; i++) {
       id_builder.Append(i).ok();
     }
   
     std::shared_ptr<arrow::Array> id_arr;
     id_builder.Finish(&id_arr).ok();
   
     auto table = arrow::Table::Make(schema, {id_arr});
   
     std::shared_ptr<arrow::io::FileOutputStream> outfile;
     ARROW_ASSIGN_OR_RAISE(outfile, 
arrow::io::FileOutputStream::Open(filename));
   
     auto props = 
parquet::WriterProperties::Builder().disable_statistics()->build();
   
     // or, replace the below with a RecordBatch stile writing
     // i don't see how it can get any simpler than this
     auto status = parquet::arrow::WriteTable(*table, 
arrow::default_memory_pool(),
                                              outfile, 1'000'000, props);
     // ^^^ errors above
   
     if (!status.ok()) {
       std::cerr << "Write failed: " << status.ToString() << std::endl;
       return status;
     }
   
     std::cout << "Success: " << filename << std::endl;
     return arrow::Status::OK();
   }
   ```
   
   I don't see similar errors if I use Arrow to write to CSVs. 
   
   OS: RHEL 9.4
   Arrow version: 23.0.1 (latest)
   C++: gcc 13.3.0, c++20
   
   ### Component(s)
   
   C++, Parquet


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to