Is there an easy way to get the schema from a BigQuery table and save it to disk for later use?
For example, say that I wanted to get the schema of a table that currently exists, save it to disk and later create a table with the same schema.
I see that there is such a thing as a SchemaField in the api, but there doesn't seem to be a clean way to serialize it.
Is there an easy way to get the schema from a BigQuery table and save it to disk for later use?
For example, say that I wanted to get the schema of a table that currently exists, save it to disk and later create a table with the same schema.
I see that there is such a thing as a SchemaField in the api, but there doesn't seem to be a clean way to serialize it.