[ https://issues.apache.org/jira/browse/HIVE-14957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15577605#comment-15577605 ]
Jesus Camacho Rodriguez commented on HIVE-14957: ------------------------------------------------ Thanks [~pxiong], patch LGTM, that should fix the issue. I think we should add a test case that reproduces the issue to verify that it works properly. Btw, this should probably be backported at least to 2.1.0. > HiveSortLimitPullUpConstantsRule misses branches when parent operator is Union > ------------------------------------------------------------------------------ > > Key: HIVE-14957 > URL: https://issues.apache.org/jira/browse/HIVE-14957 > Project: Hive > Issue Type: Sub-task > Reporter: Pengcheng Xiong > Assignee: Pengcheng Xiong > Attachments: HIVE-14957.01.patch, HIVE-14957.02.patch > > > {code} > call.transformTo(parent.copy(parent.getTraitSet(), > ImmutableList.of(relBuilder.build()))); > {code} > When parent is an union operator which has 2 inputs, the parent.copy will > only copy the one that has SortLimit and ignore the other branches. -- This message was sent by Atlassian JIRA (v6.3.4#6332)