MCPcopy Create free account
hub / github.com/apache/arrow / open_json

Method open_json

python/pyarrow/tests/test_json.py:385–394  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

383
384class 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)

Callers 2

open_bytesMethod · 0.95
test_file_objectMethod · 0.95

Calls 1

ReadOptionsClass · 0.90

Tested by

no test coverage detected