You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2015/05/29 04:28:31 UTC
[jira] [Updated] (HIVE-7659) Unnecessary sort in query plan [Spark
Branch]
[ https://issues.apache.org/jira/browse/HIVE-7659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xuefu Zhang updated HIVE-7659:
------------------------------
Fix Version/s: (was: spark-branch)
1.1.0
> Unnecessary sort in query plan [Spark Branch]
> ---------------------------------------------
>
> Key: HIVE-7659
> URL: https://issues.apache.org/jira/browse/HIVE-7659
> Project: Hive
> Issue Type: Improvement
> Components: Spark
> Reporter: Rui Li
> Assignee: Rui Li
> Fix For: 1.1.0
>
> Attachments: HIVE-7659-spark.patch, HIVE-7659.2-spark.patch
>
>
> For hive on spark.
> Currently we rely on the sort order in RS to decide whether we need a sortByKey transformation. However a simple group by query will also have the sort order set to '+'.
> Consider the query: select key from table group by key. The RS in the map work will have sort order set to '+', thus requiring a sortByKey shuffle.
> To avoid the unnecessary sort, we should either use another way to decide if there has to be a sort shuffle, or we should set the sort order only when sort is really needed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)