Skip to content

[SPARK-47933][PYTHON][CONNECT][FOLLOW-UP] Add a check of __name__ at _with_origin #46198

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

Closed
wants to merge 1 commit into from

Conversation

HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR is a followup of #46155 that adds check of __name__ at _with_origin.

Why are the changes needed?

It is possible for a callable instance without name attribute or/and module attribute to be wrapped. For example, functools.partial.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

./bin/pyspark

Was this patch authored or co-authored using generative AI tooling?

No.

@HyukjinKwon
Copy link
Member Author

Merged to master.

JacobZheng0927 pushed a commit to JacobZheng0927/spark that referenced this pull request May 11, 2024
…t `_with_origin`

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

This PR is a followup of apache#46155 that adds check of `__name__` at `_with_origin`.

### Why are the changes needed?

It is possible for a callable instance without __name__ attribute or/and __module__ attribute to be wrapped. For example, functools.partial.

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

No.

### How was this patch tested?

`./bin/pyspark`

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#46198 from HyukjinKwon/SPARK-47933-followup2.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants