Cheng Hao created SPARK-4636:
--------------------------------
Summary: 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: [email protected]
For additional commands, e-mail: [email protected]