spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hyukjin Kwon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-12259) Kryo/javaSerialization encoder are not composable
Date Sun, 16 Apr 2017 08:02:42 GMT

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

Hyukjin Kwon commented on SPARK-12259:
--------------------------------------

[~smilegator], I just happened to try to reproduce this.

{code}
import org.apache.spark.sql.Encoders

case class KryoClassData(st: String, i: Long)
implicit val kryoEncoder = Encoders.kryo[KryoClassData]
val ds = Seq( ( KryoClassData("a", 1), KryoClassData("b", 2) ) ).toDS()
ds.show()
{code}

It seems the codes above work fine now in the current master. Would this be resolvable maybe?

> Kryo/javaSerialization encoder are not composable
> -------------------------------------------------
>
>                 Key: SPARK-12259
>                 URL: https://issues.apache.org/jira/browse/SPARK-12259
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.6.0
>            Reporter: Xiao Li
>
> {code}
> implicit val kryoEncoder = Encoders.kryo[KryoClassData]
> val ds = Seq( ( KryoClassData("a", 1), KryoClassData("b", 2) ) ).toDS()
> {code}
> The above code complains it is unable to find the encoder. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message