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 38EBC179B0 for ; Tue, 21 Apr 2015 17:55:59 +0000 (UTC) Received: (qmail 99797 invoked by uid 500); 21 Apr 2015 17:55:59 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 99774 invoked by uid 500); 21 Apr 2015 17:55:59 -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 99763 invoked by uid 99); 21 Apr 2015 17:55:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2015 17:55:59 +0000 Date: Tue, 21 Apr 2015 17:55:59 +0000 (UTC) From: "Jason Dere (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HIVE-10421) DROP TABLE with qualified table name ignores database name when checking partitions 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-10421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Dere reassigned HIVE-10421: --------------------------------- Assignee: Jason Dere > DROP TABLE with qualified table name ignores database name when checking partitions > ----------------------------------------------------------------------------------- > > Key: HIVE-10421 > URL: https://issues.apache.org/jira/browse/HIVE-10421 > Project: Hive > Issue Type: Bug > Reporter: Jason Dere > Assignee: Jason Dere > > Hive was only recently changed to allow "drop table dbname.tabname". However DDLTask.dropTable() is still using an older version of Hive.getPartitionNames(), which only took in a single string for the table name, rather than the database and table names. As a result Hive is filling in the current database name as the dbname during the listPartitions call to the MetaStore. > It also appears that on the Hive Metastore side, in the non-auth path there is no validation to check that the dbname.tablename actually exists - this call simply returns back an empty list of partitions, which causes the table to be dropped without checking any of the partition information. I will open a separate issue for this one. -- This message was sent by Atlassian JIRA (v6.3.4#6332)