You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "rangadi (via GitHub)" <gi...@apache.org> on 2023/04/11 17:10:59 UTC

[GitHub] [spark] rangadi commented on a diff in pull request #40736: [SPARK-43084] [SS] Add applyInPandasWithState support for spark connect

rangadi commented on code in PR #40736:
URL: https://github.com/apache/spark/pull/40736#discussion_r1163105563


##########
python/pyspark/sql/connect/group.py:
##########
@@ -262,8 +264,44 @@ def applyInPandas(
 
     applyInPandas.__doc__ = PySparkGroupedData.applyInPandas.__doc__
 
-    def applyInPandasWithState(self, *args: Any, **kwargs: Any) -> None:
-        raise NotImplementedError("applyInPandasWithState() is not implemented.")
+    def applyInPandasWithState(

Review Comment:
   Minor: Could you remove `assert state.get[0] == 1` in the code example in the PR description? I think it is not required.



##########
python/pyspark/sql/connect/proto/types_pb2.pyi:
##########
@@ -48,13 +48,15 @@ else:
 
 DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
 
+@typing_extensions.final

Review Comment:
   These changes might be due to difference in python code generator.
   Cc: @HyukjinKwon (are we planning to generated these at build time to avoid issues like this?). 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org