Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/9922#discussion_r45792549
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/api/python/PythonDStream.scala
---
@@ -40,6 +41,18 @@ import org.apache.spark.util.Utils
*/
private[python] trait PythonTransformFunction {
def call(time: Long, rdds: JList[_]): JavaRDD[Array[Byte]]
+
+ /**
+ * After invoking `call`, the user should use `getFailure` to check if
there is any failure in
+ * Python. If so, the user should handle properly, e.g., throw an
exception with the failure
+ * message.
+ *
+ * Note: call this method only once after invoking `call` because
calling this method will clear
+ * the failure message.
+ *
+ * @return the failure message, or null if there is no failure
+ */
+ def getFailure: String
--- End diff --
getFailure --> getLastFailure
---
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]