Class AvroSerializationOptions (2.38.0)

AvroSerializationOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Contains options specific to Avro Serialization.

Attributes

Name Description
enable_display_name_attribute bool
Enable displayName attribute in Avro schema. The Avro specification requires field names to be alphanumeric. By default, in cases when column names do not conform to these requirements (e.g. non-ascii unicode codepoints) and Avro is requested as an output format, the CreateReadSession call will fail. Setting this field to true, populates avro field names with a placeholder value and populates a "displayName" attribute for every avro field with the original column name.
picos_timestamp_precision google.cloud.bigquery_storage_v1.types.AvroSerializationOptions.PicosTimestampPrecision
Optional. Set timestamp precision option. If not set, the default precision is microseconds.

Classes

PicosTimestampPrecision

PicosTimestampPrecision(value)

The precision of the timestamp value in the Avro message. This precision will only be applied to the column(s) with the TIMESTAMP_PICOS type.