vincev opened a new issue, #6944:
URL: https://github.com/apache/arrow-datafusion/issues/6944
### Is your feature request related to a problem or challenge?
`NdJsonReadOptions` has a field `schema_infer_max_records` to override the
number of records used to infer the schema but this is not passed to
`JsonFormat` in the `ReadOptions::to_listing_options` implementation for
`NdJsonReadOptions` so the following override:
```rust
let options = NdJsonReadOptions {
schema_infer_max_records: 2000,
..Default::default()
};
let df = ctx.read_json("data.json", options).await?;
```
doesn't have any effect.
### Describe the solution you'd like
Pass the `schema_infer_max_records` override to `JsonFormat`.
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
--
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]