(tempdir, dataset_reader)
| 3355 | |
| 3356 | @pytest.mark.parquet |
| 3357 | def test_incompatible_schema_hang(tempdir, dataset_reader): |
| 3358 | # ARROW-13480: deadlock when reading past an errored fragment |
| 3359 | |
| 3360 | fn = tempdir / "data.parquet" |
| 3361 | table = pa.table({'a': [1, 2, 3]}) |
| 3362 | pq.write_table(table, fn) |
| 3363 | |
| 3364 | schema = pa.schema([('a', pa.null())]) |
| 3365 | dataset = ds.dataset([str(fn)] * 100, schema=schema) |
| 3366 | assert dataset.schema.equals(schema) |
| 3367 | scanner = dataset_reader.scanner(dataset) |
| 3368 | with pytest.raises(NotImplementedError, |
| 3369 | match='Unsupported cast from int64 to null'): |
| 3370 | reader = scanner.to_reader() |
| 3371 | reader.read_all() |
| 3372 | |
| 3373 | |
| 3374 | def test_ipc_format(tempdir, dataset_reader): |
nothing calls this directly
no test coverage detected