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] [Commented] (SPARK-6145) ORDER BY fails to resolve nested fields
Date Wed, 25 Mar 2015 22:06:53 GMT

    [ https://issues.apache.org/jira/browse/SPARK-6145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14380879#comment-14380879
] 

Apache Spark commented on SPARK-6145:
-------------------------------------

User 'marmbrus' has created a pull request for this issue:
https://github.com/apache/spark/pull/5189

> ORDER BY fails to resolve nested fields
> ---------------------------------------
>
>                 Key: SPARK-6145
>                 URL: https://issues.apache.org/jira/browse/SPARK-6145
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.3.0
>            Reporter: Michael Armbrust
>            Assignee: Michael Armbrust
>            Priority: Critical
>             Fix For: 1.3.0
>
>
> {code}
> sqlContext.jsonRDD(sc.parallelize(
>   """{"a": {"b": 1}, "c": 1}""" :: Nil)).registerTempTable("nestedOrder")
> // Works
> sqlContext.sql("SELECT 1 FROM nestedOrder ORDER BY c")
> // Fails now
> sqlContext.sql("SELECT 1 FROM nestedOrder ORDER BY a.b")
> // Fails now
> sqlContext.sql("SELECT a.b FROM nestedOrder ORDER BY a.b")
> {code}
> Relatedly the error message for bad get fields should also include the name of the field
in question.



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