shaigoldman opened a new issue, #36267:
URL: https://github.com/apache/arrow/issues/36267
### Describe the bug, including details regarding any error messages,
version, and platform.
When a user is designing a get_schema() method for a FlightServer, the
expected usage is that it should return a "schema" instance, as it says on the
docs. However, the code actually raises an error if a schema is returned, and
requires you to return an instance of SchemaResult, a class only available from
the hidden pyarrow._flight module.
The bug is caused by lines 2059-262 of pyarrow._flight, in the method
_get_schema:
```
if not isinstance(result, SchemaResult):
raise TypeError("FlightServerBase.get_schema_info must return "
"a SchemaResult instance, but got {}".format(
type(result)))
```
I think this could be corrected by changing SchemaResult to Schema, and
parsing the Schema as a SchemaResult internally.
### Component(s)
FlightRPC
--
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]