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

Lefty Leverenz commented on HIVE-15758:
---------------------------------------

I added a TODOC3.0 label but I'm not sure where this should be documented -- 
subqueries, joins, or aggregates?

* [Subqueries | 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+SubQueries]
* [Joins | 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Joins]
* [UDAFs | 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-Built-inAggregateFunctions(UDAF)]

> Allow correlated scalar subqueries with aggregates which has non-equi join 
> predicates
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-15758
>                 URL: https://issues.apache.org/jira/browse/HIVE-15758
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Logical Optimizer
>            Reporter: Vineet Garg
>            Assignee: Vineet Garg
>              Labels: TODOC3.0, sub-query
>             Fix For: 3.0.0
>
>         Attachments: HIVE-15758.1.patch, HIVE-15758.2.patch, 
> HIVE-15758.3.patch
>
>
> Queries such as 
> {code} select * from part where p_size <> (select count(p_size) from part pp 
> where part.p_type <> pp.p_type); {code} are currently not allowed since HIVE 
> doesn't know how to rewrite such queries to preserve the correctness for 
> cases when there is zero row



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to