Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Apr 25, 2025

What changes were proposed in this pull request?

#50693 enabled SparkConnectErrorTests in connect-only mode

toJSON and rdd throw PySparkNotImplementedError in connect model, but PySparkAttributeError in connect-only model

Why are the changes needed?

to fix https://github.com/apache/spark/actions/runs/14649632571/job/41112060443

Does this PR introduce any user-facing change?

no

How was this patch tested?

will be tested in daily builder

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

no

assert isinstance(checkpointed._plan, plan.CachedRemoteRelation)
return checkpointed

if not is_remote_only():
Copy link
Member

Choose a reason for hiding this comment

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

This is actually intended, e.g., for autocompletetion

Copy link
Member

Choose a reason for hiding this comment

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

There are other cases in session.py as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so we should just skip the test? or remove here and always throw PySparkAttributeError?

@HyukjinKwon
Copy link
Member

Merged to master.

@zhengruifeng zhengruifeng deleted the follow_up_connect_error branch April 28, 2025 00:26
yhuang-db pushed a commit to yhuang-db/spark that referenced this pull request Jun 9, 2025
…eption

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

apache#50693 enabled `SparkConnectErrorTests` in connect-only mode

`toJSON` and `rdd` throw `PySparkNotImplementedError` in connect model, but `PySparkAttributeError` in connect-only model

### Why are the changes needed?
to fix https://github.com/apache/spark/actions/runs/14649632571/job/41112060443

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

### How was this patch tested?
will be tested in daily builder

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

Closes apache#50708 from zhengruifeng/follow_up_connect_error.

Authored-by: Ruifeng Zheng <[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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants