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

Michael Armbrust resolved SPARK-12816.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

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

> Schema generation for type aliases does not work
> ------------------------------------------------
>
>                 Key: SPARK-12816
>                 URL: https://issues.apache.org/jira/browse/SPARK-12816
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>            Reporter: Jakob Odersky
>             Fix For: 2.0.0
>
>
> Related to the second part of SPARK-12777.
> Assume the following:
> {code}
> case class Container[A](a: A)
> type IntContainer = Container[Int]
> {code}
> Generating a schema with 
> {code}org.apache.spark.sql.catalyst.ScalaReflection.schemaFor[IntContainer]{code}
>  fails miserably with {{NoSuchElementException: : head of empty list  
> (ScalaReflection.scala:504)}} (the same exception as described in the related 
> issues)
> Since {{schemaFor}} is called whenever a schema is implicitly needed, 
> {{Datasets}} cannot be created from certain aliased types.



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