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

Add a test for issue 12773 #14529

Merged
merged 5 commits into from
Dec 8, 2023
Merged
Changes from 2 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
13 changes: 12 additions & 1 deletion python/dask_cudf/dask_cudf/tests/test_join.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.
# Copyright (c) 2019-2023, NVIDIA CORPORATION.

from functools import partial

Expand Down Expand Up @@ -359,3 +359,14 @@ def test_single_partition():
m2 = dleft.merge(right, how="inner")
assert len(m2.dask) < len(dleft.dask) * 3
assert len(m2) == 100


def test_issue_12773():
# https://github.com/rapidsai/cudf/issues/12773
df1 = cudf.DataFrame({"a": ["a", "b"], "b": [1, 2]})
df2 = cudf.DataFrame({"a": ["a", "c"], "b": [2, 3]})

ddf1 = dgd.from_cudf(df1, npartitions=2).set_index("a")
ddf2 = dgd.from_cudf(df2, npartitions=2).set_index("a")

ddf1.merge(ddf2, left_index=True, right_index=True, how="left").compute()
vyasr marked this conversation as resolved.
Show resolved Hide resolved