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
{{ message }}
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Incompatible with latest version of google-cloud-bigquery #854
pandas_gbq currently has unconstrained dependencies.
Yesterday a pretty key dependency like google-cloud-bigquery released a new version (https://pypi.org/project/google-cloud-bigquery/#history) which is incompatible with pandas_gbq at the moment.
I would strongly recommend constraining dependencies to avoid this in the future!
dtypes = {}
for field in schema_fields:
name = str(field["name"])
# Array BigQuery type is represented as an object column containing
# list objects.
> if field["mode"].upper() == "REPEATED":
E KeyError: 'mode'
pandas_gbq/gbq.py:609: KeyError
Activity
parthea commentedon Jan 16, 2025
cc @Linchin @chalmerlowe
Linchin commentedon Jan 16, 2025
Thanks for letting us know, looking into this.
Linchin commentedon Jan 16, 2025
Could you give me an example of how exactly they are incompatible? It would be really helpful, thanks. @edu230991
tswast commentedon Jan 16, 2025
I wonder if it's related to this test failure? https://github.com/googleapis/python-bigquery-pandas/issues/855
It seems it may have been caused by my refactor of SchemaField. https://github.com/googleapis/python-bigquery/pull/2097 where the "mode" no longer is populated to "NULLABLE" if not set.
Linchin commentedon Jan 16, 2025
Indeed, this seems to be the cause.
edu230991 commentedon Jan 16, 2025
That's exactly it, sorry for not being more specific
Linchin commentedon Jan 16, 2025
I will yank 3.28.0
Linchin commentedon Jan 16, 2025
3.28.0 has been yanked
Linchin commentedon Jan 21, 2025
We made a new release 3.29.0 this morning.
Linchin commentedon Jan 24, 2025
Closing as this is fixed by googleapis/python-bigquery#2117, and we have made a new release v3.29.0 since.