You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example
importpolarsasplpl.scan_parquet('gs://<bucket>/<file>.parquet', storage_options={'google_service_account': '/some/google-cloud-creds.json'}) # workingimportosos.environ['GOOGLE_APPLICATION_CREDENTIALS'] ='/some/google-cloud-creds.json'pl.scan_parquet('gs://<bucket>/<file>.parquet') # not working (err log bellow)pl.scan_parquet('gs://<bucket>/<file>.parquet', storage_options={'google_service_account': '/some/google-cloud-creds.json'}) # not working (same error bellow)
Log output
Traceback (most recent call last):
File "<stdin>", line 1, in<module>
File "/usr/local/lib/python3.11/site-packages/polars/io/parquet/functions.py", line 268, in scan_parquet
return pl.LazyFrame._scan_parquet(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/polars/lazyframe/frame.py", line 453, in _scan_parquet
self._ldf = PyLazyFrame.new_from_parquet(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
polars.exceptions.ComputeError: Generic GCS error: Unsupported ApplicationCredentials type: service_account
Issue description
pl.scan_parquet doesn't work when GOOGLE_APPLICATION_CREDENTIALS env variable is set since 0.19.6
Expected behavior
pl.scan_parquet works with GOOGLE_APPLICATION_CREDENTIALS env variable
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example
Log output
Issue description
pl.scan_parquet doesn't work when
GOOGLE_APPLICATION_CREDENTIALS
env variable is set since 0.19.6Expected behavior
pl.scan_parquet works with
GOOGLE_APPLICATION_CREDENTIALS
env variableInstalled versions
The text was updated successfully, but these errors were encountered: