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 AE610D0D9 for ; Thu, 16 Aug 2012 16:43:49 +0000 (UTC) Received: (qmail 23825 invoked by uid 500); 16 Aug 2012 16:43:49 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 23765 invoked by uid 500); 16 Aug 2012 16:43:49 -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 23753 invoked by uid 99); 16 Aug 2012 16:43:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 16:43:49 +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 (nike.apache.org: domain of ablimit@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 16:43:41 +0000 Received: by obbtb18 with SMTP id tb18so5031747obb.35 for ; Thu, 16 Aug 2012 09:43:20 -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=nNYxFhNizos9ZKBMV+R8v0Bg/yobo9DDe2IPLzc+6II=; b=H9uzvs5w/cLiSUrPSjnSXNVy1jlVEEjKq/co85t/zjeSE31Dh3abrRFBRC1xxjChNp awAu9BPtWrZeQ+agiitHShH8wYYrTq4OL5KVCBohRWBgaqmmmaO0qB1DzQkAAiT0k7Kq YmQ/hrjTfp9+dE1HrSqdl0y3ZGh8O5sPezjsDS4kuIL7X14BCLaSeaYqTO3tTDXxsM81 yeLt9PGb9XIWo0obmY4dtaieO8vMALhP1OqVM8+SadI5/6Wp7/WN0p7RTqS+Iotrb3zV 0DBOlNAvvVsltPvnv+3Lkq1XrTxb1ZpCJexmn+WC+w8We9lW14FKgjtJHd39bGtXCFi5 +6UA== MIME-Version: 1.0 Received: by 10.182.216.99 with SMTP id op3mr1485260obc.85.1345135400463; Thu, 16 Aug 2012 09:43:20 -0700 (PDT) Received: by 10.182.37.106 with HTTP; Thu, 16 Aug 2012 09:43:20 -0700 (PDT) In-Reply-To: References: Date: Thu, 16 Aug 2012 12:43:20 -0400 Message-ID: Subject: Re: Problem with Hive Indexing From: Ablimit Aji To: dev@hive.apache.org Content-Type: multipart/alternative; boundary=f46d044786e7b82f2004c764bd9c --f46d044786e7b82f2004c764bd9c Content-Type: text/plain; charset=UTF-8 Thanks Mahsa ! I didn't know that there is such a constraint. Best, Ablimit On Thu, Aug 16, 2012 at 12:32 PM, Mahsa Mofidpoor wrote: > Hi, > > At lease the table size must be greater than 5GB to use the index for > filter pushdown. Otherwise you have to comment the checkQuerySize method. > > Cheers, > Mahsa > > On Mon, Jul 30, 2012 at 11:12 AM, Ablimit Aji wrote: > > > I have written a custom index handler and wanted to test it. However hive > > is not using it. > > So I test with simple table (pokes (int foo, string bar)) which comes > with > > hive distribution for testing purpose. > > Then I created a compact index and set the set > > hive.optimize.index.filter=true; > > However, upon checking the log info, it seems hive is still not using the > > index. > > So, what is the problem ? > > The query I issued is as follow: select foo from pokes WHERE foo=498 ; > > > > Below is the log info I got after issuing the query. > > > > 12/07/26 12:25:17 INFO index.IndexWhereProcessor: Processing predicate > for > > index optimization > > 12/07/26 12:25:17 INFO index.IndexWhereProcessor: (foo = 498) > > 12/07/26 12:25:17 INFO metastore.HiveMetaStore: 0: get_table : db=default > > tbl=pokes_idx > > 12/07/26 12:25:17 INFO hive.log: DDL: struct pokes_idx { i32 foo, string > > _bucketname, list _offsets} > > 12/07/26 12:25:17 INFO index.IndexWhereProcessor: checking index > > staleness... > > 12/07/26 12:25:17 INFO index.IndexWhereProcessor: 1342465077455 > > 12/07/26 12:25:17 INFO index.IndexWhereProcessor: 1342465077455 > > 12/07/26 12:25:17 INFO util.NativeCodeLoader: Loaded the native-hadoop > > library > > 12/07/26 12:25:17 WARN snappy.LoadSnappy: Snappy native library not > loaded > > > --f46d044786e7b82f2004c764bd9c--