spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Athira Das (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-2820) Group by query not returning random values
Date Mon, 04 Aug 2014 06:41:12 GMT

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

Athira Das commented on SPARK-2820:
-----------------------------------

sqlContext.sql("SELECT id, month, AVG(marks) FROM data WHERE marks>25 GROUP BY id, month").
 For this query the  output should be [id_1, 2, 50 ], [id_1, 3, 34], [id_2, 2, 47].. and so
on but instead of that i am getting 
the output like this

[1,2,34], [2,2,45] and so on

i am not able to get the id properly instead of that some random values are getting polulated

> Group by query not returning random values
> ------------------------------------------
>
>                 Key: SPARK-2820
>                 URL: https://issues.apache.org/jira/browse/SPARK-2820
>             Project: Spark
>          Issue Type: Question
>            Reporter: Athira Das
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message