Reads the JSON file into memory using pyarrow's open_json json The JSON bytes args Positional arguments to be forwarded to pyarrow's open_json kwargs Keyword arguments to be forwarded to pyarrow's open_json
(self, json, *args, **kwargs)
| 383 | |
| 384 | class BaseTestStreamingJSONRead(BaseTestJSON): |
| 385 | def open_json(self, json, *args, **kwargs): |
| 386 | """ |
| 387 | Reads the JSON file into memory using pyarrow's open_json |
| 388 | json The JSON bytes |
| 389 | args Positional arguments to be forwarded to pyarrow's open_json |
| 390 | kwargs Keyword arguments to be forwarded to pyarrow's open_json |
| 391 | """ |
| 392 | read_options = kwargs.setdefault('read_options', ReadOptions()) |
| 393 | read_options.use_threads = self.use_threads |
| 394 | return open_json(json, *args, **kwargs) |
| 395 | |
| 396 | def open_bytes(self, b, **kwargs): |
| 397 | return self.open_json(pa.py_buffer(b), **kwargs) |
no test coverage detected