[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org