jorisvandenbossche commented on issue #39689: URL: https://github.com/apache/arrow/issues/39689#issuecomment-1899304770
> > although sidenote from myself: _if_ we want, we can still disallow this, and only accept objects that _only_ have `__arrow_c_schema__` in `pa.schema(..)` > > I'm not sure how this would work. If you're a pyarrow consumer and want to create a `requested_schema` to pass into your producer, then wouldn't you need to call `pa.schema()` on your input object first, inspect that schema, then pass that schema back into your input's `__arrow_c_array__`? In that case you explicitly _want_ `pa.schema` to work on any object that exports `__arrow_c_stream__`, even if it also exports `__arrow_c_array__`, right? That's a good point. For that use case, we indeed want `pa.schema(..)` to work on an object implementing both the array/stream and schema protocol -- 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]
