kylebarron commented on issue #39689: URL: https://github.com/apache/arrow/issues/39689#issuecomment-1898966313
> 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? > * If you want to pass a `requested_schema`, you first need to know the schema you would get, before you can create your desired schema to pass to `__arrow_c_array/stream__` I admit I was scratching my head for how the `requested_schema` was expected to work if you don't have a reliable way of first getting the schema of the data. -- 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]
