spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Odersky (JIRA)" <>
Subject [jira] [Created] (SPARK-12816) Schema generation for type aliases does not work
Date Thu, 14 Jan 2016 01:30:39 GMT
Jakob Odersky created SPARK-12816:

             Summary: Schema generation for type aliases does not work
                 Key: SPARK-12816
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
            Reporter: Jakob Odersky

Related to the second part of SPARK-12777.
Assume the following:

case class Container[A](a: A)
type IntContainer = Container[Int]

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message