Skip to content

[C++][FlightRPC] Buffer handling change in 12.0.1 causing a lot of warnings being printed #36301

@RichardHaythorn

Description

@RichardHaythorn

Describe the bug, including details regarding any error messages, version, and platform.

Version: 12.0.1

"An input buffer was poorly aligned. This could lead to crashes or "
"poor performance on some hardware. Please ensure that all Acero "
"sources generate aligned buffers, or change the unaligned buffer "
"handling configuration to silence this warning."

When doing a do_get with pyarrow flight clients now, a warning is triggered for every column in every recordbatch with misaligned buffers, causing a lot of warnings to be printed to console when a table is created from the recordbatches. This is due to flight creating misaligned buffers #32276. I believe this was introduced by #35565 in how it handles unaligned buffers.

As there is no way to change this behaviour in pyarrow, the only I've found to sidestep it is to use copy.deepcopy on the recordbatches before making the pyarrow table.

Apologies for not being able to provide a MWE of the bug

Component(s)

C++, Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions