Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDDCD1836C for ; Tue, 3 Nov 2015 19:03:28 +0000 (UTC) Received: (qmail 29248 invoked by uid 500); 3 Nov 2015 19:03:28 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 29080 invoked by uid 500); 3 Nov 2015 19:03:28 -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 28882 invoked by uid 99); 3 Nov 2015 19:03:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2015 19:03:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3C8922C14E1 for ; Tue, 3 Nov 2015 19:03:28 +0000 (UTC) Date: Tue, 3 Nov 2015 19:03:28 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HIVE-11525) Bucket pruning MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-11525?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1498= 7871#comment-14987871 ]=20 Sergey Shelukhin edited comment on HIVE-11525 at 11/3/15 7:03 PM: ------------------------------------------------------------------ out file is missing according to test results was (Author: sershe): out file is missing according to test results > Bucket pruning > -------------- > > Key: HIVE-11525 > URL: https://issues.apache.org/jira/browse/HIVE-11525 > Project: Hive > Issue Type: Improvement > Components: Logical Optimizer > Affects Versions: 0.13.0, 0.14.0, 0.13.1, 1.0.0, 1.1.0 > Reporter: Maciek Kocon > Assignee: Gopal V > Labels: gsoc2015 > Attachments: HIVE-11525.1.patch, HIVE-11525.WIP.patch > > > Logically and functionally bucketing and partitioning are quite similar -= both provide mechanism to segregate and separate the table's data based on= its content. Thanks to that significant further optimisations like [partit= ion] PRUNING or [bucket] MAP JOIN are possible. > The difference seems to be imposed by design where the PARTITIONing is op= en/explicit while BUCKETing is discrete/implicit. > Partitioning seems to be very common if not a standard feature in all cur= rent RDBMS while BUCKETING seems to be HIVE specific only. > In a way BUCKETING could be also called by "hashing" or simply "IMPLICIT = PARTITIONING". > Regardless of the fact that these two are recognised as two separate feat= ures available in Hive there should be nothing to prevent leveraging same e= xisting query/join optimisations across the two. > BUCKET pruning > Enable partition PRUNING equivalent optimisation for queries on BUCKETED = tables > Simplest example is for queries like: > "SELECT =E2=80=A6 FROM x WHERE colA=3D123123" > to read only the relevant bucket file rather than all file-buckets that b= elong to a table. -- This message was sent by Atlassian JIRA (v6.3.4#6332)