Class ParquetOptions (3.15.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

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
NameDescription
resource Dict[str, bool]

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

Returns
TypeDescription
.format_options.ParquetOptionsConfiguration parsed from resource.

to_api_repr

to_api_repr() -> dict

Build an API representation of this object.

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