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

Fix failing CI ORC test #7313

Merged
merged 2 commits into from
Feb 4, 2021
Merged
Changes from 1 commit
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
Next Next commit
use temp dir for the new ORC test output
  • Loading branch information
vuule committed Feb 4, 2021
commit f569e854903f42970c55566709ffecccaac0d2c2
6 changes: 3 additions & 3 deletions python/cudf/cudf/tests/test_orc.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ def test_orc_reader_gmt_timestamps(datadir):
assert_eq(pdf, gdf)


def test_orc_bool_encode_fail():
def test_orc_bool_encode_fail(tmpdir):
np.random.seed(0)

# Generate a boolean column longer than a single stripe
Expand All @@ -686,12 +686,12 @@ def test_orc_bool_encode_fail():
# Should throw instead of generating a file that is incompatible
# with other readers (see issue #6763)
with pytest.raises(RuntimeError):
fail_df.to_orc("should_throw.orc")
fail_df.to_orc(tmpdir.join("should_throw.orc"))
galipremsagar marked this conversation as resolved.
Show resolved Hide resolved

# Generate a boolean column that fits into a single stripe
okay_df = cudf.DataFrame({"col": gen_rand_series("bool", 500000)})
okay_df["col"][500000 - 1] = None
fname = "single_stripe.orc"
fname = tmpdir.join("single_stripe.orc")
galipremsagar marked this conversation as resolved.
Show resolved Hide resolved
# Invalid row is in the last row group of the stripe;
# encoding is assumed to be correct
okay_df.to_orc(fname)
Expand Down