Class: Google::Cloud::Bigquery::Storage::V1::AvroSerializationOptions

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/bigquery/storage/v1/avro.rb

Overview

Contains options specific to Avro Serialization.

Instance Attribute Summary collapse

Instance Attribute Details

#enable_display_name_attribute::Boolean

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

Returns:

  • (::Boolean)

    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.



62
63
64
65
# File 'proto_docs/google/cloud/bigquery/storage/v1/avro.rb', line 62

class AvroSerializationOptions
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end