grundprinzip commented on code in PR #40736:
URL: https://github.com/apache/spark/pull/40736#discussion_r1166363425
##########
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(
+ self,
+ func: "PandasGroupedMapFunctionWithState",
+ outputStructType: Union[StructType, str],
Review Comment:
Using quotes is only necessary when the type cannot be imported property
because of cyclic references or if the type is not defined yet.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]