You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/12/18 23:05:46 UTC
[jira] [Resolved] (SPARK-12404) Ensure objects passed to
StaticInvoke is Serializable
[ 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org