Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0A5010C57 for ; Wed, 21 Aug 2013 02:40:53 +0000 (UTC) Received: (qmail 9609 invoked by uid 500); 21 Aug 2013 02:40:52 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 9294 invoked by uid 500); 21 Aug 2013 02:40:51 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 9278 invoked by uid 99); 21 Aug 2013 02:40:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 02:40:50 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of edlinuxguru@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-wg0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Aug 2013 02:40:46 +0000 Received: by mail-wg0-f51.google.com with SMTP id a12so991230wgh.6 for ; Tue, 20 Aug 2013 19:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ni+2HcbeBlB9/+uWSbRFzUKAaqpUqL/PbH0MwR58hy0=; b=ztCnUxzxKuG08qRxEoIF4guneYXQZW/sWT634oprgkmyYRneqntJ5KapapEjHrD8qM JzZ7T++QAfFvsNAeA4aBlcbh3WrOlYGPc4a5bfMd/kc4+4+qpNrTBfptKvLx0WdZYpr/ SSPjWuWtAK9DXkpXKD3BB/qJmBlpKStKFMZwIqgvYm1ORDVXVa5AlKVYxRK7PYtGtO3E aopZTcb5tQXgkbUjytVaoTn+ghiE4tTxiDLV83MuEAMCZvbrhmdZ1N29OCVjzhZo/TVM 8oSrDdO+Q56FixPSx+a9QtDpcPXyO00X9sREQKD/BNu4EftWoQ4Q5yEb6u61NK1IpQah YyJA== MIME-Version: 1.0 X-Received: by 10.180.189.132 with SMTP id gi4mr14726572wic.19.1377052825462; Tue, 20 Aug 2013 19:40:25 -0700 (PDT) Received: by 10.194.125.177 with HTTP; Tue, 20 Aug 2013 19:40:25 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Aug 2013 22:40:25 -0400 Message-ID: Subject: Re: Any Scenarios in which Views impose performance penalties From: Edward Capriolo To: "user@hive.apache.org" Content-Type: multipart/alternative; boundary=001a11c352947facb004e46c1800 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c352947facb004e46c1800 Content-Type: text/plain; charset=ISO-8859-1 Views are logical . The view is compiled and has no penalty over the standard query. On Tuesday, August 20, 2013, Ricky Saltzer wrote: > Since this bug was in Impala's query planner, I'm sure Hive is unaffected. > > On Aug 20, 2013 10:15 PM, "Stephen Boesch" wrote: >> >> Thanks v much Ricky. Is this fixed in hive 0.11 - or going to be later i.e. 0.12? >> >> 2013/8/20 Ricky Saltzer >>> >>> Although this is already fixed in the next and upcoming impala release, you might want to be aware of the following view limitation. >>> >>> https://issues.cloudera.org/browse/IMPALA-495 >>> >>> On Aug 20, 2013 7:16 PM, "Stephen Boesch" wrote: >>>> >>>> Views should theoretically not incur performance penalties: they simply represent queries. Are there situtions that things are "not that simple" - i.e. views may actually result in different exeucution plans than the underlying sql? >>>> Additionally, are there views-related bugs that we should be aware of that would limit the occasions that we could use them? >>>> Thanks for the pointers. >>>> >> > --001a11c352947facb004e46c1800 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Views are logical . The view is compiled and has no penalty over the standa= rd query.

On Tuesday, August 20, 2013, Ricky Saltzer <ricky@cloudera.com> wrote:
> Since = this bug was in Impala's query planner, I'm sure Hive is unaffected= .
>
> On Aug 20, 2013 10:15 PM, "Stephen Boesch" <javadba@gmail.com> wrote:
>>= ;
>> Thanks v much Ricky. =A0Is this fixed in hive 0.11 - or going= to be later i.e. 0.12?
>>
>> 2013/8/20 Ricky Saltzer <ricky@cloudera.com>
>>>
>>> Alth= ough this is already fixed in the next and upcoming impala release, you mig= ht want to be aware of the following view limitation.
>>>
>>> https://issues.cloudera.org/browse/IMPALA-495
>>&g= t;
>>> On Aug 20, 2013 7:16 PM, "Stephen Boesch" <= javadba@gmail.com> wrote:
>>>>
>>>> Views should theoretically not incur p= erformance penalties: they simply represent queries. Are there situtions th= at things are "not that simple" - i.e. views may actually result = in different exeucution plans than the underlying sql? =A0
>>>> Additionally, are there views-related bugs that we should = be aware of that would limit the occasions that we could use them?
>&= gt;>> Thanks for the pointers.
>>>>
>>
> --001a11c352947facb004e46c1800--