Class AvroOptions (2.29.0)

AvroOptions()

Options if source format is set to AVRO.

Inheritance

builtins.object > AvroOptions

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: Dict[str, bool])

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.AvroOptions`Configuration parsed from ``resource``.

to_api_repr

to_api_repr()

Build an API representation of this object.

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