Class ParquetOptions (3.27.0)

ParquetOptions()

Additional options if the PARQUET source format is used.

Properties

enable_list_inference

Indicates whether to use schema inference specifically for Parquet LIST logical type.

See https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#ParquetOptions.FIELDS.enable_list_inference

enum_as_string

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

map_target_type

Indicates whether to simplify the representation of parquet maps to only show keys and values.

Methods

from_api_repr

from_api_repr(
    resource: typing.Dict[str, bool]
) -> google.cloud.bigquery.format_options.ParquetOptions

Factory: construct an instance from a resource dict.

Parameter
Name Description
resource Dict[str, bool]

Definition of a .format_options.ParquetOptions instance in the same representation as is returned from the API.

Returns
Type Description
.format_options.ParquetOptions Configuration parsed from resource.

to_api_repr

to_api_repr() -> dict

Build an API representation of this object.

Returns
Type Description
Dict[str, bool] A dictionary in the format used by the BigQuery API.