Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 23462200BB2 for ; Fri, 14 Oct 2016 23:25:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 21F0A160ADD; Fri, 14 Oct 2016 21:25:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 91939160AF4 for ; Fri, 14 Oct 2016 23:25:21 +0200 (CEST) Received: (qmail 82839 invoked by uid 500); 14 Oct 2016 21:25:20 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 82710 invoked by uid 99); 14 Oct 2016 21:25:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 21:25:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 97EB92C4C79 for ; Fri, 14 Oct 2016 21:25:20 +0000 (UTC) Date: Fri, 14 Oct 2016 21:25:20 +0000 (UTC) From: "Pengcheng Xiong (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-14957) HiveSortLimitPullUpConstantsRule misses branches when parent operator is Union MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 14 Oct 2016 21:25:22 -0000 [ https://issues.apache.org/jira/browse/HIVE-14957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pengcheng Xiong updated HIVE-14957: ----------------------------------- Attachment: HIVE-14957.02.patch > 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)