Skip to content
Advertisement

Tag: google-bigquery

How do I update column description in BigQuery table using python script?

I can use SchemaField(f”{field_name}”, f”{field_type}”, mode=”NULLABLE”, description=…) while making a new table. But I want to update the description of the column of the already uploaded table. Answer Unfortunately, we don’t have such a mechanism available yet to update a column description of the table through the client library. As a workaround, you can try the following available options to

Load JSON file to BigQuery with empty dict as a value

I am uploading a newline-delimited JSON file from GCS to BigQuery. There are some fields in the JSON file which contain dicts for values, and I have no problem getting those values into BigQuery, as the nested fields are broken down into separate columns. So it all works if the following example is a line from the JSON file: {“dict_field”:

Advertisement