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

Shant Hovsepian commented on IMPALA-1285:
-----------------------------------------

More complex subqueries such as this one can be determined to be scalar at plan 
time instead of runtime.

> Subquery with group by and where could realize the result has one row.
> ----------------------------------------------------------------------
>
>                 Key: IMPALA-1285
>                 URL: https://issues.apache.org/jira/browse/IMPALA-1285
>             Project: IMPALA
>          Issue Type: Task
>          Components: Frontend
>    Affects Versions: Impala 2.0
>            Reporter: Nong Li
>            Priority: Minor
>              Labels: planner
>
> An example is tpcds q44,
> {code}
> group by ss_item_sk   
> --    having avg(ss_net_profit) > 0.9*(select avg(ss_net_profit) rank_col
> --                                      from store_sales      
> --                                      where ss_store_sk = 4 
> --                                      group by ss_store_sk)
> {code}
> We should recognize that there is a single eq predicate and a single grouping 
> column.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to