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

Function test_incompatible_schema_hang

python/pyarrow/tests/test_dataset.py:3357–3371  ·  view source on GitHub ↗
(tempdir, dataset_reader)

Source from the content-addressed store, hash-verified

3355
3356@pytest.mark.parquet
3357def 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
3374def test_ipc_format(tempdir, dataset_reader):

Callers

nothing calls this directly

Calls 4

equalsMethod · 0.80
scannerMethod · 0.80
write_tableMethod · 0.45
schemaMethod · 0.45

Tested by

no test coverage detected