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

Method test_load_large_json

python/pyarrow/tests/test_json.py:313–321  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

311
312 @pytest.mark.numpy
313 def test_load_large_json(self):
314 for extra_whitespace in (False, True):
315 data, _, expected = make_random_json(num_cols=2, num_rows=100100,
316 extra_whitespace=extra_whitespace)
317 # set block size is 10MB
318 read_options = ReadOptions(block_size=1024*1024*10)
319 table = self.read_bytes(data, read_options=read_options)
320 assert table.num_rows == 100100
321 assert expected.num_rows == 100100
322
323 @pytest.mark.numpy
324 def test_stress_block_sizes(self):

Callers

nothing calls this directly

Calls 3

read_bytesMethod · 0.95
ReadOptionsClass · 0.90
make_random_jsonFunction · 0.85

Tested by

no test coverage detected