You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2018/06/01 01:40:00 UTC

[jira] [Commented] (SPARK-23754) StopIterator exception in Python UDF results in partial result

    [ https://issues.apache.org/jira/browse/SPARK-23754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16497461#comment-16497461 ] 

Hyukjin Kwon commented on SPARK-23754:
--------------------------------------

For clarification, this is _fixed_. We are just trying to clean up a bit which shouldn't be a blocker.

> StopIterator exception in Python UDF results in partial result
> --------------------------------------------------------------
>
>                 Key: SPARK-23754
>                 URL: https://issues.apache.org/jira/browse/SPARK-23754
>             Project: Spark
>          Issue Type: Bug
>          Components: PySpark
>    Affects Versions: 2.3.0
>            Reporter: Li Jin
>            Assignee: Emilio Dorigatti
>            Priority: Blocker
>             Fix For: 2.3.1, 2.4.0
>
>
> Reproduce:
> {code:java}
> df = spark.range(0, 1000)
> from pyspark.sql.functions import udf
> def foo(x):
>     raise StopIteration()
> df.withColumn('v', udf(foo)).show()
> # Results
> # +---+---+
> # | id|  v|
> # +---+---+
> # +---+---+{code}
> I think the task should fail in this case



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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