Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
vuule committed Nov 22, 2022
1 parent 6756b02 commit f15080f
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 19 additions & 0 deletions python/cudf/cudf/tests/test_orc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1815,3 +1815,22 @@ def test_statistics_string_sum():

file_stats, stripe_stats = cudf.io.orc.read_orc_statistics([buff])
assert_eq(file_stats[0]["str"].get("sum"), sum(len(s) for s in strings))


@pytest.mark.parametrize(
"fname",
[
"TestOrcFile.Hive.OneEmptyMap.orc",
"TestOrcFile.Hive.OneEmptyList.orc",
"TestOrcFile.Hive.OneNullStruct.orc",
"TestOrcFile.Hive.EmptyListStripe.orc",
"TestOrcFile.Hive.NullStructStripe.orc",
"TestOrcFile.Hive.AllNulls.orc",
],
)
def test_reader_empty_stripe(datadir, fname):
path = datadir / fname

expected = pd.read_orc(path)
got = cudf.read_orc(path)
assert_eq(expected, got)

0 comments on commit f15080f

Please sign in to comment.