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/27 09:49:12 UTC

[jira] [Commented] (SPARK-4636) Cluster By & Distribute By output different with Hive

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

Apache Spark commented on SPARK-4636:
-------------------------------------

User 'chenghao-intel' has created a pull request for this issue:
https://github.com/apache/spark/pull/3496

> Cluster By & Distribute By output different with Hive
> -----------------------------------------------------
>
>                 Key: SPARK-4636
>                 URL: https://issues.apache.org/jira/browse/SPARK-4636
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Cheng Hao
>
> This is a very interesting bug.
> Semantically, Cluster By & Distribute By will not cause a global ordering, as described in Hive wiki:
> https://cwiki.apache.org/confluence/display/Hive/LanguageManual+SortBy
> However, the partition keys are sorted in MapReduce after shuffle, so from the user point of view, the partition key itself is global ordered, and it may looks like:
> http://stackoverflow.com/questions/13715044/hive-cluster-by-vs-order-by-vs-sort-by



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