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

Ashutosh Chauhan commented on HIVE-14590:
-----------------------------------------

In addition to union, this may happen in other scenarios also. So, better 
approach is to handle it at top level. Modified patch to reflect that.

> CBO (Calcite Return Path) Incorrect result set when limit is present in one 
> of the union branches
> -------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-14590
>                 URL: https://issues.apache.org/jira/browse/HIVE-14590
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Logical Optimizer
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: Ashutosh Chauhan
>            Assignee: Ashutosh Chauhan
>         Attachments: HIVE-14590.1.patch, HIVE-14590.patch
>
>
> Limit gets propagated outside union. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to