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)
| 134 | 'decimal.orc' |
| 135 | ]) |
| 136 | def 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 | |
| 148 | def test_timezone_database_absent(datadir): |
nothing calls this directly
no test coverage detected