spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Armbrust (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-3776) Wrong conversion to Catalyst for Option[Product]
Date Mon, 06 Oct 2014 00:57:33 GMT

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

Michael Armbrust resolved SPARK-3776.
-------------------------------------
    Resolution: Fixed

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

> Wrong conversion to Catalyst for Option[Product]
> ------------------------------------------------
>
>                 Key: SPARK-3776
>                 URL: https://issues.apache.org/jira/browse/SPARK-3776
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.1.0
>            Reporter: Renat Yusupov
>             Fix For: 1.2.0
>
>
> Method ScalaReflection.convertToCatalyst make wrong conversion for Option[Product] data.
> For example:
> case class A(intValue: Int)
> case class B(optionA: Option[A])
> val b = B(Some(A(5)))
> ScalaReflection.convertToCatalyst(b) returns Seq(A(5)) instead of Seq(Seq(5))



--
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


Mime
View raw message