-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-51827][SS][CONNECT] Support Spark Connect on transformWithState in PySpark #50704
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
[SPARK-51827][SS][CONNECT] Support Spark Connect on transformWithState in PySpark #50704
Conversation
|
@hvanhovell @HyukjinKwon @jingz-db Please take a look, thanks! |
|
Thanks! Merging to master. |
python/pyspark/sql/connect/group.py
Outdated
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.
@HeartSaVioR Did some code changes perhaps fail to be submitted ? After the merge, both the testing and lint checks failed.
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.
Try to fix: #50734
|
Sorry I missed your comment @LuciferYang This is reverted via 4c9c41e due to CI failures |
|
Argh, sorry. CI made me fun of me. This did not seem to go and pick the result (or really just merge conflicts, don't quite remember). I'll make a forward fix. |
5d1213f to
a091fcc
Compare
|
This is the fix I added on top of merged PR. I'll merge if the CI passes since it was approved without 2 lines of changes, and I could have just +1 to @LuciferYang and merged. |
LuciferYang
left a comment
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.
+1, LGTM (pending tests)
|
https://github.com/HeartSaVioR/spark/runs/41228780833 Just confirmed CI is green. |
|
Thanks! Merging to master (again). |
…e in PySpark ### What changes were proposed in this pull request? This PR proposes to support Spark Connect on transformWithState in PySpark. The code is mostly reused between Pandas version and Row version. We rely on PythonEvanType to determine the user facing type of API, hence no proto change. ### Why are the changes needed? The new API needs to be supported with Spark Connect. ### Does this PR introduce _any_ user-facing change? Yes, we will expose a new API to be available in Spark Connect. ### How was this patch tested? New test suites. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#50704 from HeartSaVioR/WIP-transform-with-state-python-in-spark-connect. Authored-by: Jungtaek Lim <[email protected]> Signed-off-by: Jungtaek Lim <[email protected]>
…e in PySpark ### What changes were proposed in this pull request? This PR proposes to support Spark Connect on transformWithState in PySpark. The code is mostly reused between Pandas version and Row version. We rely on PythonEvanType to determine the user facing type of API, hence no proto change. ### Why are the changes needed? The new API needs to be supported with Spark Connect. ### Does this PR introduce _any_ user-facing change? Yes, we will expose a new API to be available in Spark Connect. ### How was this patch tested? New test suites. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#50704 from HeartSaVioR/WIP-transform-with-state-python-in-spark-connect. Authored-by: Jungtaek Lim <[email protected]> Signed-off-by: Jungtaek Lim <[email protected]>


What changes were proposed in this pull request?
This PR proposes to support Spark Connect on transformWithState in PySpark. The code is mostly reused between Pandas version and Row version.
We rely on PythonEvanType to determine the user facing type of API, hence no proto change.
Why are the changes needed?
The new API needs to be supported with Spark Connect.
Does this PR introduce any user-facing change?
Yes, we will expose a new API to be available in Spark Connect.
How was this patch tested?
New test suites.
Was this patch authored or co-authored using generative AI tooling?
No.