We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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