Class AvroOptions (3.14.1)

AvroOptions()

Options if source format is set to AVRO.

Properties

use_avro_logical_types

[Optional] If sourceFormat is set to 'AVRO', indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER).

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

Methods

from_api_repr

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

Factory: construct an instance from a resource dict.

Parameter
NameDescription
resource Dict[str, bool]

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

Returns
TypeDescription
.format_options.AvroOptionsConfiguration 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.