You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2014/11/13 18:59:33 UTC
[jira] [Commented] (SPARK-4322) Struct fields can't be used as
sub-expression of grouping fields
[ https://issues.apache.org/jira/browse/SPARK-4322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14210084#comment-14210084 ]
Apache Spark commented on SPARK-4322:
-------------------------------------
User 'liancheng' has created a pull request for this issue:
https://github.com/apache/spark/pull/3248
> Struct fields can't be used as sub-expression of grouping fields
> ----------------------------------------------------------------
>
> Key: SPARK-4322
> URL: https://issues.apache.org/jira/browse/SPARK-4322
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Michael Armbrust
> Assignee: Cheng Lian
> Priority: Blocker
>
> Some examples:
> {code}
> sqlContext.jsonRDD(sc.parallelize("""{"a": {"b": [{"c": 1}]}}""" :: Nil)).registerTempTable("data1")
> sqlContext.sql("SELECT a.b[0].c FROM data1 GROUP BY a.b[0].c").collect()
> sqlContext.jsonRDD(sc.parallelize("""{"a": {"b": 1}}""" :: Nil)).registerTempTable("data2")
> sqlContext.sql("SELECT a.b + 1 FROM data2 GROUP BY a.b + 1").collect()
> {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