Module: AvroTurf::AvroGemPatch::DatumReader

Defined in:
lib/avro_turf/schema_to_avro_patch.rb

Instance Method Summary collapse

Instance Method Details

#read_default_value(field_schema, default_value) ⇒ Object



39
40
41
42
43
44
45
# File 'lib/avro_turf/schema_to_avro_patch.rb', line 39

def read_default_value(field_schema, default_value)
  if default_value == :no_default
    raise Avro::AvroError, "Missing data for #{field_schema} with no default"
  end

  super
end