judahrand commented on issue #1045:
URL: https://github.com/apache/arrow-adbc/issues/1045#issuecomment-1710484703

   > Ah, no worries. But yes, to be fair, we could pass through the underlying 
error more clearly here.
   
   Yes, and that might even help the next error I run into 🤣 
   
   ```python
   with conn.cursor() as cursor:
           cursor.execute(f'CREATE TEMPORARY TABLE {temp_table} ( 
{input_columns} );')
           if inp_table.num_rows > 0:
               cursor.adbc_ingest(
                   temp_table,
                   inp_table,
                   mode='append',
               )
   ```
   results in 
   ```
   File "adbc_driver_manager/_lib.pyx", line 1068, in 
adbc_driver_manager._lib.AdbcStatement.execute_update
   File "adbc_driver_manager/_lib.pyx", line 399, in 
adbc_driver_manager._lib.check_error
   adbc_driver_manager.OperationalError: IO: [libpq] Failed to execute prepared 
statement: 
   ```
   
   which is equally difficult to debug.


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