Skip to content

Conversation

@itholic
Copy link
Contributor

@itholic itholic commented Feb 13, 2023

What changes were proposed in this pull request?

This PR proposes to migrate TypeError into error framework for Spark Connect Column API.

Why are the changes needed?

To improve errors by leveraging the PySpark error framework for Spark Connect Column APIs.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Fixed & added UTs.

@HyukjinKwon
Copy link
Member

cc @MaxGekk would you mind taking a look please when you find some time.

@HyukjinKwon
Copy link
Member

@itholic mind fixing the test?

@itholic
Copy link
Contributor Author

itholic commented Feb 16, 2023

Fixed the test. Thanks!

@HyukjinKwon
Copy link
Member

Still fails. Mind fixing them please?

@itholic
Copy link
Contributor Author

itholic commented Feb 22, 2023

FYI @HyukjinKwon CI passed!

@amaliujia
Copy link
Contributor

LGTM

@HyukjinKwon
Copy link
Member

Merged to master and branch-3.4.

HyukjinKwon pushed a commit that referenced this pull request Feb 27, 2023
… Connect Column API

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

This PR proposes to migrate `TypeError` into error framework for Spark Connect Column API.

### Why are the changes needed?

To improve errors by leveraging the PySpark error framework for Spark Connect Column APIs.

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

No.

### How was this patch tested?

Fixed & added UTs.

Closes #39991 from itholic/SPARK-42419.

Authored-by: itholic <haejoon.lee@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 86d3db9)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@itholic itholic deleted the SPARK-42419 branch April 22, 2023 05:49
zhengruifeng pushed a commit that referenced this pull request Apr 25, 2023
### What changes were proposed in this pull request?

This is follow-up for #39991 to remove unused exception.

### Why are the changes needed?

`PySparkTypeError` never raises because we checked the type already in the codes above `if type(startPos) != type(length):` and raise `PySparkTypeError` for unsupported type for `length`.

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

No. it's minor code cleanup

### How was this patch tested?

The existing CI should pass.

Closes #40927 from itholic/connect_col_followup.

Authored-by: itholic <haejoon.lee@databricks.com>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
snmvaughan pushed a commit to snmvaughan/spark that referenced this pull request Jun 20, 2023
… Connect Column API

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

This PR proposes to migrate `TypeError` into error framework for Spark Connect Column API.

### Why are the changes needed?

To improve errors by leveraging the PySpark error framework for Spark Connect Column APIs.

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

No.

### How was this patch tested?

Fixed & added UTs.

Closes apache#39991 from itholic/SPARK-42419.

Authored-by: itholic <haejoon.lee@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 86d3db9)
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.

3 participants