Skip to content

Commit

Permalink
ARROW-17725: [CI][Python] Fix test collection in case of Arrow built …
Browse files Browse the repository at this point in the history
…without parquet (#14119)

As seen on the JIRA ticket our minimal builds were failing due to failures on test collection. The issue happened when Arrow was built without PARQUET.

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
  • Loading branch information
raulcd committed Sep 14, 2022
1 parent 03cf0dd commit bc8a608
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/pyarrow/tests/parquet/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,9 @@ def test_filters_invalid_column(tempdir, use_legacy_dataset):
pc.field('integers') < 3,
pc.field('nested', 'a') < 3,
pc.field('nested', 'b').cast(pa.int64()) < 3))
@pytest.mark.parametrize("read", (pq.read_table, pq.read_pandas))
def test_filters_read_table(tempdir, use_legacy_dataset, filters, read):
@pytest.mark.parametrize("read_method", ("read_table", "read_pandas"))
def test_filters_read_table(tempdir, use_legacy_dataset, filters, read_method):
read = getattr(pq, read_method)
# test that filters keyword is passed through in read_table
fs = LocalFileSystem._get_instance()
base_path = tempdir
Expand Down

0 comments on commit bc8a608

Please sign in to comment.