Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW] Add xfail for parquet reader 11.5 issue #9612

Merged
merged 1 commit into from
Nov 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion python/cudf/cudf/tests/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from packaging import version
from pyarrow import fs as pa_fs, parquet as pq

import rmm

import cudf
from cudf.io.parquet import ParquetWriter, merge_parquet_filemetadata
from cudf.testing import dataset_generator as dg
Expand Down Expand Up @@ -172,7 +174,9 @@ def gdf_day_timestamps(pdf_day_timestamps):

@pytest.fixture(params=["snappy", "gzip", "brotli", None, np.str_("snappy")])
def parquet_file(request, tmp_path_factory, pdf):
fname = tmp_path_factory.mktemp("parquet") / "test.parquet"
fname = tmp_path_factory.mktemp("parquet") / (
str(request.param) + "_test.parquet"
)
pdf.to_parquet(fname, engine="pyarrow", compression=request.param)
return fname

Expand Down Expand Up @@ -242,6 +246,12 @@ def _make_parquet_path_or_buf(src):
],
)
def test_parquet_reader_basic(parquet_file, columns, engine):
if rmm._cuda.gpu.runtimeGetVersion() == 11050 and "brotli_" in str(
parquet_file
):
pytest.xfail(
"Known issue: https://github.com/rapidsai/cudf/issues/9546"
)
expect = pd.read_parquet(parquet_file, columns=columns)
got = cudf.read_parquet(parquet_file, engine=engine, columns=columns)
if len(expect) == 0:
Expand Down