BigQuery Format Options¶
- class google.cloud.bigquery.format_options.AvroOptions[source]¶
Options if source format is set to AVRO.
- classmethod from_api_repr(resource: Dict[str, bool]) google.cloud.bigquery.format_options.AvroOptions [source]¶
Factory: construct an instance from a resource dict.
- Parameters
resource (Dict[str, bool]) – Definition of a
AvroOptions
instance in the same representation as is returned from the API.- Returns
Configuration parsed from
resource
.- Return type
- class google.cloud.bigquery.format_options.ParquetOptions[source]¶
Additional options if the PARQUET source format is used.
- property enable_list_inference: bool¶
Indicates whether to use schema inference specifically for Parquet LIST logical type.
- property enum_as_string: bool¶
Indicates whether to infer Parquet ENUM logical type as STRING instead of BYTES by default.
See https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#ParquetOptions.FIELDS.enum_as_string
- classmethod from_api_repr(resource: Dict[str, bool]) google.cloud.bigquery.format_options.ParquetOptions [source]¶
Factory: construct an instance from a resource dict.
- Parameters
resource (Dict[str, bool]) – Definition of a
ParquetOptions
instance in the same representation as is returned from the API.- Returns
Configuration parsed from
resource
.- Return type