Skip to content

[Flight][Python] FlightInfo segfaults when schema is None #46481

@rustyconover

Description

@rustyconover

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

Hi Arrow Team,

I ran into an issue when calling flight.FlightInfo with a None schema. The following minimal example causes a segmentation fault:

import pyarrow.flight as flight

flight.FlightInfo(
    None,
    flight.FlightDescriptor.for_path("foo"),
    [],
    -1,
    -1
)

This was tested with pyarrow 20.0.0.

It looks like the crash occurs because None is passed instead of a valid Schema. It would be great if this could raise a Python exception instead of causing a segfault.

Thank you.

Component(s)

FlightRPC

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions