BigQuery Storage V1 API - Class Google::Cloud::Bigquery::Storage::V1::AvroSerializationOptions (v0.19.1)

Reference documentation and code samples for the BigQuery Storage V1 API class Google::Cloud::Bigquery::Storage::V1::AvroSerializationOptions.

Contains options specific to Avro Serialization.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#enable_display_name_attribute

def enable_display_name_attribute() -> ::Boolean
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.

#enable_display_name_attribute=

def enable_display_name_attribute=(value) -> ::Boolean
Parameter
  • value (::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.

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.