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 5BE4211483 for ; Fri, 22 Aug 2014 20:26:12 +0000 (UTC) Received: (qmail 42519 invoked by uid 500); 22 Aug 2014 20:26:11 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 42425 invoked by uid 500); 22 Aug 2014 20:26:11 -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 41889 invoked by uid 500); 22 Aug 2014 20:26:11 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 41807 invoked by uid 99); 22 Aug 2014 20:26:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Aug 2014 20:26:11 +0000 Date: Fri, 22 Aug 2014 20:26:11 +0000 (UTC) From: "Andrew Mains (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7805) Support running multiple scans in hbase-handler 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-7805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Mains updated HIVE-7805: ------------------------------- Status: In Progress (was: Patch Available) > Support running multiple scans in hbase-handler > ----------------------------------------------- > > Key: HIVE-7805 > URL: https://issues.apache.org/jira/browse/HIVE-7805 > Project: Hive > Issue Type: Improvement > Components: HBase Handler > Affects Versions: 0.14.0 > Reporter: Andrew Mains > Assignee: Andrew Mains > Attachments: HIVE-7805.patch > > > Currently, the HiveHBaseTableInputFormat only supports running a single scan. This can be less efficient than running multiple disjoint scans in certain cases, particularly when using a composite row key. For instance, given a row key schema of: > {code} > struct > {code} > if one wants to push down the predicate: > {code} > bucket IN (1, 10, 100) AND timestamp >= 1408333927 AND timestamp < 1408506670 > {code} > it's much more efficient to run a scan for each bucket over the time range (particularly if there's a large amount of data per day). With a single scan, the MR job has to process the data for all time for buckets in between 1 and 100. > hive should allow HBaseKeyFactory's to decompose a predicate into one or more scans in order to take advantage of this fact. -- This message was sent by Atlassian JIRA (v6.2#6252)