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

Function test_fragments_parquet_subset_invalid

python/pyarrow/tests/test_dataset.py:1880–1889  ·  view source on GitHub ↗
(tempdir)

Source from the content-addressed store, hash-verified

1878
1879@pytest.mark.parquet
1880def test_fragments_parquet_subset_invalid(tempdir):
1881 _, dataset = _create_dataset_for_fragments(tempdir, chunk_size=1)
1882 fragment = list(dataset.get_fragments())[0]
1883
1884 # passing none or both of filter / row_group_ids
1885 with pytest.raises(ValueError):
1886 fragment.subset(ds.field("f1") >= 1, row_group_ids=[1, 2])
1887
1888 with pytest.raises(ValueError):
1889 fragment.subset()
1890
1891
1892@pytest.mark.parquet

Callers

nothing calls this directly

Calls 3

listFunction · 0.85
fieldMethod · 0.45

Tested by

no test coverage detected