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 3102F1796C for ; Thu, 16 Oct 2014 05:19:35 +0000 (UTC) Received: (qmail 89334 invoked by uid 500); 16 Oct 2014 05:19:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 89263 invoked by uid 500); 16 Oct 2014 05:19:34 -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 89247 invoked by uid 500); 16 Oct 2014 05:19:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 89244 invoked by uid 99); 16 Oct 2014 05:19:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2014 05:19:33 +0000 Date: Thu, 16 Oct 2014 05:19:33 +0000 (UTC) From: "Vaibhav Gumashta (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-8475) add test case for use of index from not-current database 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-8475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14173380#comment-14173380 ] Vaibhav Gumashta commented on HIVE-8475: ---------------------------------------- +1 > add test case for use of index from not-current database > -------------------------------------------------------- > > Key: HIVE-8475 > URL: https://issues.apache.org/jira/browse/HIVE-8475 > Project: Hive > Issue Type: Bug > Components: Indexing > Reporter: Thejas M Nair > Assignee: Thejas M Nair > Attachments: HIVE-8475-0.13.1.patch, HIVE-8475.1.patch > > > In hive 0.13, the following sequence fails - > {code:sql} > create database index_test_db; > use index_test_db; > create table testtb (id int, name string); > create index id_index on table testtb (id) as 'COMPACT' WITH DEFERRED REBUILD in table testdb_id_idx_tb; > use default; > select * from index_test_db.testtb where id>2; > -- fails here with error "Table not found testdb_id_idx_tb" > {code} > HIVE-4064 fixed the problem. It will be useful to have a test case that verifies the fix. -- This message was sent by Atlassian JIRA (v6.3.4#6332)