Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5A5AE10429 for ; Tue, 18 Mar 2014 21:17:00 +0000 (UTC) Received: (qmail 8689 invoked by uid 500); 18 Mar 2014 21:16:58 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 8502 invoked by uid 500); 18 Mar 2014 21:16:56 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 8489 invoked by uid 500); 18 Mar 2014 21:16:55 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 8485 invoked by uid 99); 18 Mar 2014 21:16:55 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2014 21:16:55 +0000 Date: Tue, 18 Mar 2014 21:16:54 +0000 (UTC) From: "Harish Butani (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-4293) Predicates following UDTF operator are removed by PPD MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-4293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Harish Butani updated HIVE-4293: -------------------------------- Attachment: HIVE-4293.13.patch > Predicates following UDTF operator are removed by PPD > ----------------------------------------------------- > > Key: HIVE-4293 > URL: https://issues.apache.org/jira/browse/HIVE-4293 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Navis > Assignee: Navis > Priority: Critical > Attachments: D9933.6.patch, HIVE-4293.10.patch, HIVE-4293.11.patch.txt, HIVE-4293.12.patch, HIVE-4293.13.patch, HIVE-4293.7.patch.txt, HIVE-4293.8.patch.txt, HIVE-4293.9.patch.txt, HIVE-4293.D9933.1.patch, HIVE-4293.D9933.2.patch, HIVE-4293.D9933.3.patch, HIVE-4293.D9933.4.patch, HIVE-4293.D9933.5.patch > > > For example, > {noformat} > explain SELECT value from ( > select explode(array(key, value)) as (value) from ( > select * FROM src WHERE key > 200 > ) A > ) B WHERE value > 300 > ; > {noformat} > Makes plan like this, removing last predicates > {noformat} > TableScan > alias: src > Filter Operator > predicate: > expr: (key > 200.0) > type: boolean > Select Operator > expressions: > expr: array(key,value) > type: array > outputColumnNames: _col0 > UDTF Operator > function name: explode > Select Operator > expressions: > expr: col > type: string > outputColumnNames: _col0 > File Output Operator > compressed: false > GlobalTableId: 0 > table: > input format: org.apache.hadoop.mapred.TextInputFormat > output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)