-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41225] [CONNECT] [PYTHON] Disable unsupported functions. #38762
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
Conversation
|
|
||
| def localCheckpoint(self, *args: Any, **kwargs: Any) -> None: | ||
| raise NotImplementedError("localCheckpoint() is not implemented.") | ||
|
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toJSON
There was a problem hiding this comment.
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.") |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
|
LGTM |
|
merged into master |
### 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>
### 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>
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