judahrand opened a new issue, #2191:
URL: https://github.com/apache/arrow-adbc/issues/2191

   ### What feature or improvement would you like to see?
   
   The simplest case of this is something like this called from Python:
   
   ```python
   cursor.execute('SELECT $1', ([1, 2, 3],))
   cursor.fetch_arrow_table()
   ```
   
   Currently, this results in
   ```
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File 
"<REDACTED>/.venv/lib/python3.12/site-packages/adbc_driver_manager/dbapi.py", 
line 698, in execute
       handle, self._rowcount = _blocking_call(
                                ^^^^^^^^^^^^^^^
     File "adbc_driver_manager/_lib.pyx", line 1569, in 
adbc_driver_manager._lib._blocking_call_impl
     File "adbc_driver_manager/_lib.pyx", line 1562, in 
adbc_driver_manager._lib._blocking_call_impl
     File "adbc_driver_manager/_lib.pyx", line 1213, in 
adbc_driver_manager._lib.AdbcStatement.execute_query
     File "adbc_driver_manager/_lib.pyx", line 260, in 
adbc_driver_manager._lib.check_error
   adbc_driver_manager.NotSupportedError: NOT_IMPLEMENTED: [libpq] Field #1 
('0') has unsupported parameter type list
   ```
   
   Along the same lines it would be nice if PyArrow arrays could be bound 
similarly like:
   
   ```python
   cursor.execute('SELECT $1', (pyarrow.array([1, 2, 3])))
   cursor.fetch_arrow_table()
   ``` 
   


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