henryharbeck opened a new pull request, #3556:
URL: https://github.com/apache/arrow-adbc/pull/3556

   Implements `import_schema()` for the Polars DBAPI backend.
   
   This means `Connection.adbc_get_table_schema`, 
`Cursor.adbc_execute_partitions`, `Cursor.adbc_execute_schema`, and 
`Cursor.adbc_prepare` can now return a PyArrow Schema or a Polars Schema. 
Unfortunately it does not seem like the return type can be known statically, so 
I haven't added any overloads. If the ambiguous return type isn't desired, 
please feel free to suggest alternatives or close this PR.
   
   Support for initializing a `polars.Schema` from the `__arrow_c_schema__` 
interface was added in Polars 
[1.32.1](https://github.com/pola-rs/polars/releases/tag/py-1.32.1) 
(https://github.com/pola-rs/polars/pull/23879) (which was yanked, so really 
1.32.2)
   
   I've left a few comments where I'm unsure of whether some alternative code 
may preferred
   
   Closes https://github.com/apache/arrow-adbc/issues/3421


-- 
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]

Reply via email to