Class AvroSerializationOptions (2.16.2)

Stay organized with collections Save and categorize content based on your preferences.
AvroSerializationOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Contains options specific to Avro Serialization.

Attribute

NameDescription
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.

Inheritance

builtins.object > proto.message.Message > AvroSerializationOptions