ex791857 commented on issue #13801:
URL: https://github.com/apache/arrow/issues/13801#issuecomment-1206160968
It turns out `std::make_shared<arrow::Schema>` is responsible for the
segmentation fault. After I comment following code, the code could run normally.
```CPP
auto expected_schema = std::make_shared<arrow::Schema>(schema_vector);
if (!expected_schema->Equals(*table->schema()))
{
// The table doesn't have the expected schema thus we cannot directly
// convert it to our target representation.
spdlog::error("Schemas in {} are not matching order!", parFile);
exit(-1);
}
```
But I still got questions about how could a statement that never runs affect
this library memory?
This is an example code from official docs
https://arrow.apache.org/docs/cpp/examples/row_columnar_conversion.html
--
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]