kskalski opened a new issue, #5215:
URL: https://github.com/apache/arrow-rs/issues/5215
**Describe the bug**
Such scenario produces
`JsonError("Expected object json type, found: Any")`
**To Reproduce**
```rust
#[test]
fn test_infer_from_null_then_object() {
let data = r#"
{"obj":null}
{"obj":{"foo":1}}
"#;
let (inferred_schema, _) =
infer_json_schema_from_seekable(Cursor::new(data),
None).expect("infer");
}
```
**Expected behavior**
Schema should be inferred and have struct data type for `obj` field
**Additional context**
arrow-rs master / v49.0.0
--
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]