Github user tdas commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9922#discussion_r45798494
  
    --- Diff: 
streaming/src/main/scala/org/apache/spark/streaming/api/python/PythonDStream.scala
 ---
    @@ -48,6 +59,16 @@ private[python] trait PythonTransformFunction {
     private[python] trait PythonTransformFunctionSerializer {
       def dumps(id: String): Array[Byte]
       def loads(bytes: Array[Byte]): PythonTransformFunction
    +
    +  /**
    +   * After invoking `dumps` or `loads`, the user should use 
`getLastFailure` to check if there is
    +   * any failure in Python. If so, the user should handle properly, e.g., 
throw an exception with
    --- End diff --
    
    nit: Very verbose. Just simply say "Get the failure, if any, in the last 
call to `dumps` or `loads`. Returns the failure message if there was a failure, 
or `null` if there was not failure."


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to