jecsand838 commented on code in PR #8254:
URL: https://github.com/apache/arrow-rs/pull/8254#discussion_r2312094980
##########
arrow-avro/src/reader/record.rs:
##########
@@ -1471,4 +1485,111 @@ mod tests {
assert!(int_array.is_null(0)); // row1 is null
assert_eq!(int_array.value(1), 42); // row3 value is 42
}
+
+ #[test]
+ fn test_map_with_non_nullable_value_type() {
+ let schema_json = r#"{
+ "type": "record",
+ "name": "MapRecord",
+ "fields": [
+ {"name": "map_field", "type": { "type": "map", "values":
"string" }}
+ ]
+ }"#;
+
+ let schema: AvroSchema = serde_json::from_str(schema_json).unwrap();
Review Comment:
```suggestion
let schema: Schema = serde_json::from_str(schema_json).unwrap();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]