spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-8358) DataFrame explode with alias and * fails
Date Sun, 14 Jun 2015 04:58:00 GMT

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

Apache Spark reassigned SPARK-8358:
-----------------------------------

    Assignee: Apache Spark  (was: Michael Armbrust)

> DataFrame explode with alias and * fails
> ----------------------------------------
>
>                 Key: SPARK-8358
>                 URL: https://issues.apache.org/jira/browse/SPARK-8358
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.4.0
>            Reporter: Michael Armbrust
>            Assignee: Apache Spark
>            Priority: Blocker
>
> {code}
> scala> Seq((Array("a"), 1)).toDF("a", "b").select(explode($"a").as("a"), $"*")
> org.apache.spark.sql.catalyst.analysis.UnresolvedException: Invalid call to dataType
on unresolved object, tree: 'a
>         at org.apache.spark.sql.catalyst.analysis.UnresolvedAttribute.dataType(unresolved.scala:60)
>         at org.apache.spark.sql.catalyst.expressions.Explode.elementTypes(generators.scala:107)
>         at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveGenerate$AliasedGenerator$.unapply(Analyzer.scala:577)
>         at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveGenerate$$anonfun$apply$16$$anonfun$22.apply(Analyzer.scala:535)
>         at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveGenerate$$anonfun$apply$16$$anonfun$22.apply(Analyzer.scala:534)
>         at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
>         at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
> ...
> {code}



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