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

Function test_example_using_json

python/pyarrow/tests/test_orc.py:136–145  ·  view source on GitHub ↗

Check a ORC file example against the equivalent JSON file, as given in the Apache ORC repository (the JSON file has one JSON object per line, corresponding to one row in the ORC file).

(filename, datadir)

Source from the content-addressed store, hash-verified

134 'decimal.orc'
135])
136def test_example_using_json(filename, datadir):
137 """
138 Check a ORC file example against the equivalent JSON file, as given
139 in the Apache ORC repository (the JSON file has one JSON object per
140 line, corresponding to one row in the ORC file).
141 """
142 # Read JSON file
143 path = datadir / filename
144 table = pd.read_json(str(path.with_suffix('.jsn.gz')), lines=True)
145 check_example_file(path, table, need_fix=True)
146
147
148def test_timezone_database_absent(datadir):

Callers

nothing calls this directly

Calls 2

check_example_fileFunction · 0.85
read_jsonMethod · 0.45

Tested by

no test coverage detected