@@ -33,7 +33,7 @@ use crate::spec::{
33
33
use crate :: { Error , ErrorKind , Result , ensure_data_valid} ;
34
34
35
35
const ELEMENT_ID : & str = "element-id" ;
36
- const FILED_ID_PROP : & str = "field-id" ;
36
+ const FIELD_ID_PROP : & str = "field-id" ;
37
37
const KEY_ID : & str = "key-id" ;
38
38
const VALUE_ID : & str = "value-id" ;
39
39
const UUID_BYTES : usize = 16 ;
@@ -96,7 +96,7 @@ impl SchemaVisitor for SchemaToAvroSchema {
96
96
avro_record_field. default = Some ( Value :: Null ) ;
97
97
}
98
98
avro_record_field. custom_attributes . insert (
99
- FILED_ID_PROP . to_string ( ) ,
99
+ FIELD_ID_PROP . to_string ( ) ,
100
100
Value :: Number ( Number :: from ( field. id ) ) ,
101
101
) ;
102
102
@@ -178,7 +178,7 @@ impl SchemaVisitor for SchemaToAvroSchema {
178
178
custom_attributes : Default :: default ( ) ,
179
179
} ;
180
180
field. custom_attributes . insert (
181
- FILED_ID_PROP . to_string ( ) ,
181
+ FIELD_ID_PROP . to_string ( ) ,
182
182
Value :: Number ( Number :: from ( map. key_field . id ) ) ,
183
183
) ;
184
184
field
@@ -196,7 +196,7 @@ impl SchemaVisitor for SchemaToAvroSchema {
196
196
custom_attributes : Default :: default ( ) ,
197
197
} ;
198
198
field. custom_attributes . insert (
199
- FILED_ID_PROP . to_string ( ) ,
199
+ FIELD_ID_PROP . to_string ( ) ,
200
200
Value :: Number ( Number :: from ( map. value_field . id ) ) ,
201
201
) ;
202
202
field
@@ -444,7 +444,7 @@ impl AvroSchemaVisitor for AvroSchemaToSchema {
444
444
let mut fields = Vec :: with_capacity ( field_types. len ( ) ) ;
445
445
for ( avro_field, field_type) in record. fields . iter ( ) . zip_eq ( field_types) {
446
446
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 ) ?;
448
448
449
449
let optional = is_avro_optional ( & avro_field. schema ) ;
450
450
@@ -585,11 +585,11 @@ impl AvroSchemaVisitor for AvroSchemaToSchema {
585
585
} ) ?;
586
586
let key_id = Self :: get_element_id_from_attributes (
587
587
& array. fields [ 0 ] . custom_attributes ,
588
- FILED_ID_PROP ,
588
+ FIELD_ID_PROP ,
589
589
) ?;
590
590
let value_id = Self :: get_element_id_from_attributes (
591
591
& array. fields [ 1 ] . custom_attributes ,
592
- FILED_ID_PROP ,
592
+ FIELD_ID_PROP ,
593
593
) ?;
594
594
let key_field = NestedField :: map_key_element ( key_id, key) ;
595
595
let value_field = NestedField :: map_value_element (
0 commit comments