GitHub user paleolimbot added a comment to the discussion: Querying PostgreSQL 
generate_subscripts from Python with a dimension from bound parameters

I believe David may have been referring to the place where we call 
`pyarrow.record_batch()`:

https://github.com/apache/arrow-adbc/blob/fdf92e0443f5000a1fe94ae08a30bca849fb0cc3/python/adbc_driver_manager/adbc_driver_manager/_dbapi_backend.py#L229-L237

(there may be others). That function accepts a `schema` argument, and in theory 
we could query the driver for what the schema should be and use it.

The problem with that is that schema inference isn't perfect (like `SELECT $1`) 
since there's no way to signal the "the driver has no sweet clue" in the 
current interface.

The workaround today would be to query the bind schema yourself and call 
`pa.record_batch(..., schema)` manually.

GitHub link: 
https://github.com/apache/arrow-adbc/discussions/2865#discussioncomment-15126374

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to