[
https://issues.apache.org/jira/browse/HIVE-13722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15277137#comment-15277137
]
Jesus Camacho Rodriguez commented on HIVE-13722:
------------------------------------------------
[~ashutoshc], could you take a look? The problem was that we were firing the
rule and producing the same expression again and again, thus entering in an
infinite loop. New exit condition checks whether a constant expression has been
added on top of Union (or Sort) or not.
> Add flag to detect constants to CBO pull up rules
> -------------------------------------------------
>
> Key: HIVE-13722
> URL: https://issues.apache.org/jira/browse/HIVE-13722
> Project: Hive
> Issue Type: Sub-task
> Components: CBO, Logical Optimizer, Physical Optimizer
> Affects Versions: 2.1.0
> Reporter: Jesus Camacho Rodriguez
> Assignee: Jesus Camacho Rodriguez
> Attachments: HIVE-13722.patch
>
>
> Add flag to avoid firing CBO pull up constants rules indefinitely. This issue
> can be reproduced using e.g. union27.q, union_remove_19.q, unionDistinct_1.q.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)