[
https://issues.apache.org/jira/browse/HIVE-6348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071980#comment-16071980
]
Lefty Leverenz commented on HIVE-6348:
--------------------------------------
Doc note: This adds *hive.remove.orderby.in.subquery* to HiveConf.java, so it
needs to be documented in Configuration Properties.
* [Configuration Properties -- Query Execution |
https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-QueryandDDLExecution]
Do we also need general documentation? If so, should it go in the Subqueries
doc or the SortBy doc?
* [Subqueries |
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+SubQueries]
* [Sort By / Order By / etc. |
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+SortBy]
Added a TODOC3.0 label.
> Order by/Sort by in subquery
> ----------------------------
>
> Key: HIVE-6348
> URL: https://issues.apache.org/jira/browse/HIVE-6348
> Project: Hive
> Issue Type: Bug
> Reporter: Gunther Hagleitner
> Assignee: Rui Li
> Priority: Minor
> Labels: TODOC3.0, sub-query
> Fix For: 3.0.0
>
> Attachments: HIVE-6348.1.patch, HIVE-6348.2.patch, HIVE-6348.3.patch,
> HIVE-6348.4.patch
>
>
> select * from (select * from foo order by c asc) bar order by c desc;
> in hive sorts the data set twice. The optimizer should probably remove any
> order by/sort by in the sub query unless you use 'limit '. Could even go so
> far as barring it at the semantic level.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)