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 1ce4f3a commit e768cddCopy full SHA for e768cdd
‎google/cloud/bigquery/schema.py‎
@@ -259,11 +259,10 @@ def __init__(
259
if self._properties.get("foreignTypeDefinition") is None:
260
raise ValueError(
261
"If the 'field_type' is 'FOREIGN', then 'foreign_type_definition' is required."
262
- )
+ )
263
if fields: # Don't set the property if it's not set.
264
self._properties["fields"] = [field.to_api_repr() for field in fields]
265
266
-
267
@classmethod
268
def from_api_repr(cls, api_repr: dict) -> "SchemaField":
269
"""Return a ``SchemaField`` object deserialized from a dictionary.
0 commit comments