-
Notifications
You must be signed in to change notification settings - Fork 590
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
FEAT: Add support for Union in PySpark backend #2270
Conversation
ibis/pyspark/tests/test_basic.py
Outdated
| @@ -163,6 +163,25 @@ def test_filter(client, filter_fn, expected_fn): | |||
| tm.assert_frame_equal(result.toPandas(), expected.toPandas()) | |||
|
|
|||
|
|
|||
| @pytest.mark.parametrize('distinct', [False, True]) | |||
| def test_union(client, distinct): | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have union tests under tests/all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I can move this test to tests/all actually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created a new union test in tests/all and removed the union test in the PySpark backend I was originally going to add. I also removed the existing basic union tests in the Pandas and Postgres backends
|
LGTM. Can merge if CI passes. |
716cb64
to
81fa05b
Compare
|
Rebased since CI has been fixed (in #2272) |
|
Going to rebase again now that the CI |
313b7eb
to
7a2d837
Compare
|
thanks @timothydijamco |
Add a compilation function for the
Unionnode in the PySpark backend (roughly mirroring the execution function forUnionin the Pandas backend).Testing
Added a new test in
pyspark/tests/test_basic.pyto test the compilation function (exposed byunionin the table API)