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

   ### What happened?
   
   The Python README for bigquery has a few issues with it that prevent it from 
being usable.
   
   https://pypi.org/project/adbc-driver-bigquery/
   
   ```python
   import adbc_driver_bigquery.dbapi
   from adbc_driver_bigquery import DatabaseOptions
   
   db_kwargs = {
       DatabaseOptions.AUTH_TYPE.value: 
DatabaseOptions.AUTH_VALUE_CREDENTIALS_FILE,
       DatabaseOptions.CREDENTIALS.value: "credentials.json",
       DatabaseOptions.PROJECT_ID.value: "bigquery-poc-418913",
       DatabaseOptions.DATASET_ID.value: "google_trends",
       DatabaseOptions.TABLE_ID.value: "small_top_terms",
   }
   with adbc_driver_bigquery.dbapi.connect(db_kwargs) as conn:
       with conn.cursor() as cur:
           cur.execute("SELECT 1")
           print(cur.fetch_arrow_table())
   ```
   
   I am at least under the impression that the 
`DatabaseOptions.AUTH_VALUE_CREDENTIALS_FILE` should read 
`DatabaseOptions.AUTH_VALUE_JSON_CREDENTIALS_FILE`, but simply changing that 
leads to a slew of other errors about how the values are being interpreted and 
passed to the driver manager
   
   ### Stack Trace
   
   AttributeError: type object 'DatabaseOptions' has no attribute 
'AUTH_VALUE_CREDENTIALS_FILE'
   
   
   ### How can we reproduce the bug?
   
   _No response_
   
   ### Environment/Setup
   
   _No response_


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to