[ 
https://issues.apache.org/jira/browse/SPARK-12404?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Armbrust resolved SPARK-12404.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.6.0

Issue resolved by pull request 10357
[https://github.com/apache/spark/pull/10357]

> Ensure objects passed to StaticInvoke is Serializable
> -----------------------------------------------------
>
>                 Key: SPARK-12404
>                 URL: https://issues.apache.org/jira/browse/SPARK-12404
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.1, 2.0.0
>            Reporter: Kousuke Saruta
>            Assignee: Apache Spark
>            Priority: Critical
>             Fix For: 1.6.0
>
>
> Now `StaticInvoke` receives Any as a object and StaticInvoke can be 
> serialized but sometimes the object passed is not serializable.
> For example, following code raises Exception because RowEncoder#extractorsFor 
> invoked indirectly makes `StaticInvoke`.
> {code}
> case class TimestampContainer(timestamp: java.sql.Timestamp)
> val rdd = sc.parallelize(1 to 2).map(_ => 
> TimestampContainer(System.currentTimeMillis))
> val df = rdd.toDF
> val ds = df.as[TimestampContainer]
> val rdd2 = ds.rdd                                 <----------------- invokes 
> extractorsFor indirectory
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to