Skip to content

Conversation

@grundprinzip
Copy link
Contributor

@grundprinzip grundprinzip commented Nov 22, 2022

What changes were proposed in this pull request?

For the better user experience we need to properly throw exceptions for functions that are not supported in Spark Connect.

Why are the changes needed?

User Experience

Does this PR introduce any user-facing change?

No

How was this patch tested?

UT

@grundprinzip
Copy link
Contributor Author

@HyukjinKwon @hvanhovell


def localCheckpoint(self, *args: Any, **kwargs: Any) -> None:
raise NotImplementedError("localCheckpoint() is not implemented.")

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we also do not support to_pandas_on_spark, pandas_api, registerTempTable , storageLevel, mapInPandas, mapInArrow , writeStream

Copy link
Contributor

Choose a reason for hiding this comment

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

  • toJSON

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ack will add those

self._session.execute_command(command)

def rdd(self, *args: Any, **kwargs: Any) -> None:
raise NotImplementedError("RDD Support for Spark Connect is not implemented.")
Copy link
Contributor

@amaliujia amaliujia Nov 23, 2022

Choose a reason for hiding this comment

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

Maybe keep consistently to include for Spark Connect or not include it in the error message?

Either is fine.

Only this one mentions Spark Connect now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

While we might implement the others, here I want to be really specific about not being part of Spark Connect.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good

@amaliujia
Copy link
Contributor

LGTM

@zhengruifeng
Copy link
Contributor

merged into master

beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 15, 2022
### What changes were proposed in this pull request?
For the better user experience we need to properly throw exceptions for functions that are not supported in Spark Connect.

### Why are the changes needed?
User Experience

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

### How was this patch tested?
UT

Closes apache#38762 from grundprinzip/SPARK-41225.

Authored-by: Martin Grund <martin.grund@databricks.com>
Signed-off-by: Ruifeng Zheng <ruifengz@apache.org>
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 18, 2022
### What changes were proposed in this pull request?
For the better user experience we need to properly throw exceptions for functions that are not supported in Spark Connect.

### Why are the changes needed?
User Experience

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

### How was this patch tested?
UT

Closes apache#38762 from grundprinzip/SPARK-41225.

Authored-by: Martin Grund <martin.grund@databricks.com>
Signed-off-by: Ruifeng Zheng <ruifengz@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