Commits


Mohamed Zenadi authored and Neville Dipale committed 04a1867eeb5
ARROW-8993: [Rust] support reading non-seekable sources A proposal of an implementation to read `json.gz` files. The idea is to along `.json` files, support gziped ones. The implementation of `json::ReadBuilder` heavily rely on `File`. My first approach would have been to make another version of the builder that would rely on a `BufReader<Box<dyn Read>>` and have the original one delegate to this the final build. I went with another approach, in this case I've added an option to specify if the file is gziped or not. In this case, the original implementation works as defined, however requires a switch of type as per https://github.com/apache/arrow/compare/master...zeapo:feature/json-gzip?expand=1#diff-3fa6fc3c0ee201f5a3a1a5d25d0062ffR966-R967 I've got no religion on this. Suggestions are welcome, to be honest, I would love that the `infer_json_schema` be public , which would make all of this code unnecessary as it would delegate the builder process to the users who care about these features. 3 options :) Closes #7309 from zeapo/feature/json-gzip Authored-by: Mohamed Zenadi <mohamed@zenadi.com> Signed-off-by: Neville Dipale <nevilledips@gmail.com>