Skip to content

[SPARK-40977][CONNECT][PYTHON] Complete Support for Union in Python client#38453

Closed
amaliujia wants to merge 1 commit intoapache:masterfrom
amaliujia:python_union
Closed

[SPARK-40977][CONNECT][PYTHON] Complete Support for Union in Python client#38453
amaliujia wants to merge 1 commit intoapache:masterfrom
amaliujia:python_union

Conversation

@amaliujia
Copy link
Contributor

What changes were proposed in this pull request?

  1. Improve testing coverage for Union and UnionAll (they are actually both UnionAll)
  2. Add the API which does UnionByName.

Why are the changes needed?

Improve API Coverage.

Does this PR introduce any user-facing change?

No

How was this patch tested?

UT

@amaliujia
Copy link
Contributor Author

@HyukjinKwon

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@HyukjinKwon
Copy link
Member

Merged to master.

self.assertIsNotNone(plan.root, "Root relation must be set")
self.assertIsNotNone(plan.root.read)

def test_union(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we should add a comment like:

def test_union(self):
    # SPARK-12345: a short description of the test
    ...

per https://spark.apache.org/contributing.html. Let's don't forget this next time :-).

SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…lient

### What changes were proposed in this pull request?

1. Improve testing coverage for `Union` and `UnionAll` (they are actually both `UnionAll`)
2. Add the API which does `UnionByName`.

### Why are the changes needed?

Improve API Coverage.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

UT

Closes apache#38453 from amaliujia/python_union.

Authored-by: Rui Wang <rui.wang@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants