@@ -33,7 +33,7 @@ use crate::spec::{
3333use crate :: { Error , ErrorKind , Result , ensure_data_valid} ;
3434
3535const ELEMENT_ID : & str = "element-id" ;
36- const FILED_ID_PROP : & str = "field-id" ;
36+ const FIELD_ID_PROP : & str = "field-id" ;
3737const KEY_ID : & str = "key-id" ;
3838const VALUE_ID : & str = "value-id" ;
3939const UUID_BYTES : usize = 16 ;
@@ -96,7 +96,7 @@ impl SchemaVisitor for SchemaToAvroSchema {
9696 avro_record_field. default = Some ( Value :: Null ) ;
9797 }
9898 avro_record_field. custom_attributes . insert (
99- FILED_ID_PROP . to_string ( ) ,
99+ FIELD_ID_PROP . to_string ( ) ,
100100 Value :: Number ( Number :: from ( field. id ) ) ,
101101 ) ;
102102
@@ -178,7 +178,7 @@ impl SchemaVisitor for SchemaToAvroSchema {
178178 custom_attributes : Default :: default ( ) ,
179179 } ;
180180 field. custom_attributes . insert (
181- FILED_ID_PROP . to_string ( ) ,
181+ FIELD_ID_PROP . to_string ( ) ,
182182 Value :: Number ( Number :: from ( map. key_field . id ) ) ,
183183 ) ;
184184 field
@@ -196,7 +196,7 @@ impl SchemaVisitor for SchemaToAvroSchema {
196196 custom_attributes : Default :: default ( ) ,
197197 } ;
198198 field. custom_attributes . insert (
199- FILED_ID_PROP . to_string ( ) ,
199+ FIELD_ID_PROP . to_string ( ) ,
200200 Value :: Number ( Number :: from ( map. value_field . id ) ) ,
201201 ) ;
202202 field
@@ -444,7 +444,7 @@ impl AvroSchemaVisitor for AvroSchemaToSchema {
444444 let mut fields = Vec :: with_capacity ( field_types. len ( ) ) ;
445445 for ( avro_field, field_type) in record. fields . iter ( ) . zip_eq ( field_types) {
446446 let field_id =
447- Self :: get_element_id_from_attributes ( & avro_field. custom_attributes , FILED_ID_PROP ) ?;
447+ Self :: get_element_id_from_attributes ( & avro_field. custom_attributes , FIELD_ID_PROP ) ?;
448448
449449 let optional = is_avro_optional ( & avro_field. schema ) ;
450450
@@ -585,11 +585,11 @@ impl AvroSchemaVisitor for AvroSchemaToSchema {
585585 } ) ?;
586586 let key_id = Self :: get_element_id_from_attributes (
587587 & array. fields [ 0 ] . custom_attributes ,
588- FILED_ID_PROP ,
588+ FIELD_ID_PROP ,
589589 ) ?;
590590 let value_id = Self :: get_element_id_from_attributes (
591591 & array. fields [ 1 ] . custom_attributes ,
592- FILED_ID_PROP ,
592+ FIELD_ID_PROP ,
593593 ) ?;
594594 let key_field = NestedField :: map_key_element ( key_id, key) ;
595595 let value_field = NestedField :: map_value_element (
0 commit comments