Dandandan commented on issue #2722:
URL: https://github.com/apache/arrow-rs/issues/2722#issuecomment-1245930487
I think the `RecordBatch` with rows of `1` is as expected, as the input
`some_json` also contains one record (without fields):
```
let some_json: Vec<Result<serde_json::Value, arrow::error::ArrowError>> =
vec![Ok(serde_json::json!({}))];
```
The previous implementation was always giving the error, while the correct
result in this case should be a record batch with a `row_count` of 1. If your
input is `vec![Ok(serde_json::json!({})), Ok(serde_json::json!({})]` the
expected row_count is `2` and with `vec![]` it should give a recordbatch with
`row_count` of `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]