We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1424700 commit 63f65a7Copy full SHA for 63f65a7
bigframes/dtypes.py
@@ -834,11 +834,16 @@ def convert_to_schema_field(
834
convert_to_schema_field(field.name, inner_bf_type, overrides)
835
)
836
837
- description = (
838
- OBJ_REF_DESCRIPTION_TAG if bigframes_dtype == OBJ_REF_DTYPE else None
839
- )
+ if bigframes_dtype == OBJ_REF_DTYPE:
+ return google.cloud.bigquery.SchemaField(
+ name,
840
+ "RECORD",
841
+ fields=inner_fields,
842
+ description=OBJ_REF_DESCRIPTION_TAG,
843
+ )
844
+
845
return google.cloud.bigquery.SchemaField(
- name, "RECORD", fields=inner_fields, description=description
846
+ name, "RECORD", fields=inner_fields
847
848
if bigframes_dtype.pyarrow_dtype == pa.duration("us"):
849
# Timedeltas are represented as integers in microseconds.
0 commit comments