You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Ai-Ya-Ya (via GitHub)" <gi...@apache.org> on 2026/03/09 18:34:14 UTC
[I] [C++][Parquet] Regression: WriteTable and WriteRecordBatch fail with floating point exception [arrow]
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: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [C++][Parquet] Regression: WriteTable and WriteRecordBatch fail with floating point exception [arrow]
Posted by "Ai-Ya-Ya (via GitHub)" <gi...@apache.org>.
Ai-Ya-Ya commented on issue #49480:
URL: https://github.com/apache/arrow/issues/49480#issuecomment-4039027860
This was a user error. Closing.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [C++][Parquet] Regression: WriteTable and WriteRecordBatch fail with floating point exception [arrow]
Posted by "Ai-Ya-Ya (via GitHub)" <gi...@apache.org>.
Ai-Ya-Ya closed issue #49480: [C++][Parquet] Regression: WriteTable and WriteRecordBatch fail with floating point exception
URL: https://github.com/apache/arrow/issues/49480
--
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: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org