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 B57ED100C6 for ; Wed, 19 Nov 2014 21:42:36 +0000 (UTC) Received: (qmail 5719 invoked by uid 500); 19 Nov 2014 21:42:36 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 5661 invoked by uid 500); 19 Nov 2014 21:42:36 -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 5643 invoked by uid 500); 19 Nov 2014 21:42:36 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 5640 invoked by uid 99); 19 Nov 2014 21:42:36 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Nov 2014 21:42:36 +0000 Date: Wed, 19 Nov 2014 21:42:35 +0000 (UTC) From: "Chaoyu Tang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-8863) Cannot drop table with uppercase name after "compute statistics for columns" 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-8863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chaoyu Tang updated HIVE-8863: ------------------------------ Status: Patch Available (was: Open) > Cannot drop table with uppercase name after "compute statistics for columns" > ---------------------------------------------------------------------------- > > Key: HIVE-8863 > URL: https://issues.apache.org/jira/browse/HIVE-8863 > Project: Hive > Issue Type: Bug > Components: Metastore > Reporter: Juan Yu > Assignee: Chaoyu Tang > Attachments: HIVE-8863.patch > > > Create a table with uppercase name Test, > run "analyze table Test compute statistics for columns col1" > After this, you cannot drop the table by > drop table Test; > Got error: > NestedThrowablesStackTrace: > java.sql.BatchUpdateException: Cannot delete or update a parent row: a foreign key constraint fails ("hive2"."TAB_COL_STATS", CONSTRAINT "TAB_COL_STATS_FK" FOREIGN KEY ("TBL_ID") REFERENCES "TBLS" ("TBL_ID")) > workaround is to use lowercase table name > drop table test; -- This message was sent by Atlassian JIRA (v6.3.4#6332)