lidavidm commented on issue #1080:
URL: https://github.com/apache/arrow-adbc/issues/1080#issuecomment-1728462034

   Are you sure you have a source build?
   
   ```
   Python 3.11.5 | packaged by conda-forge | (main, Aug 27 2023, 03:34:09) [GCC 
12.3.0] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import pyarrow as pa
   >>> from adbc_driver_postgresql import dbapi
   >>> uri = "postgresql://postgres:password@localhost:5432/postgres"
   >>> conn = dbapi.connect(uri)
   >>> cur = conn.cursor()
   >>> data = pa.array([1, 2, 4])
   >>> tbl = pa.Table.from_arrays([data], names=["CAPITALIZED"])
   >>> cur.adbc_ingest("test_table", tbl, mode="create")
   3
   >>> conn.commit()
   >>> cur.execute("SELECT * FROM test_table")
   >>> cur.fetch_arrow_table()
   pyarrow.Table
   CAPITALIZED: int64
   ----
   CAPITALIZED: [[1,2,4]]
   ```


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