8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c50418 commit 7de6822Copy full SHA for 7de6822
google/cloud/bigquery/schema.py
@@ -228,6 +228,12 @@ def from_api_repr(cls, api_repr: dict) -> "SchemaField":
228
# fields. See https://github.com/googleapis/python-bigquery/issues/6
229
placeholder._properties = api_repr
230
231
+ # Add the field `mode` with default value if it does not exist. Fixes
232
+ # an incompatibility issue with pandas-gbq:
233
+ # https://github.com/googleapis/python-bigquery-pandas/issues/854
234
+ if "mode" not in placeholder._properties:
235
+ placeholder._properties["mode"] = "NULLABLE"
236
+
237
return placeholder
238
239
@property
0 commit comments