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 5A5E3117DF for ; Tue, 24 Jun 2014 05:54:26 +0000 (UTC) Received: (qmail 91964 invoked by uid 500); 24 Jun 2014 05:54:25 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 91891 invoked by uid 500); 24 Jun 2014 05:54:25 -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 91868 invoked by uid 500); 24 Jun 2014 05:54:25 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 91864 invoked by uid 99); 24 Jun 2014 05:54:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 05:54:25 +0000 Date: Tue, 24 Jun 2014 05:54:25 +0000 (UTC) From: "Bing Li (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HIVE-4118) ANALYZE TABLE ... COMPUTE STATISTICS FOR COLUMNS fails when using fully qualified table name 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-4118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bing Li reassigned HIVE-4118: ----------------------------- Assignee: Bing Li (was: Shreepadma Venugopalan) > ANALYZE TABLE ... COMPUTE STATISTICS FOR COLUMNS fails when using fully qualified table name > -------------------------------------------------------------------------------------------- > > Key: HIVE-4118 > URL: https://issues.apache.org/jira/browse/HIVE-4118 > Project: Hive > Issue Type: Bug > Components: Statistics > Affects Versions: 0.10.0 > Reporter: Lenni Kuff > Assignee: Bing Li > Fix For: 0.14.0 > > Attachments: HIVE-4118.1.patch, HIVE-4118.2.patch > > > Computing column stats fails when using fully qualified table name. Issuing a "USE db" and using only the table name succeeds. > {code} > hive -e "ANALYZE TABLE somedb.some_table COMPUTE STATISTICS FOR COLUMNS int_col" > org.apache.hadoop.hive.ql.metadata.HiveException: NoSuchObjectException(message:Table somedb.some_table for which stats is gathered doesn't exist.) > at org.apache.hadoop.hive.ql.metadata.Hive.updateTableColumnStatistics(Hive.java:2201) > at org.apache.hadoop.hive.ql.exec.ColumnStatsTask.persistTableStats(ColumnStatsTask.java:325) > at org.apache.hadoop.hive.ql.exec.ColumnStatsTask.execute(ColumnStatsTask.java:336) > at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:138) > at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57) > at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1352) > at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1138) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:951) > at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:412) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hive.metastore.RetryingRawStore.invoke(RetryingRawStore.java:111) > at $Proxy9.updateTableColumnStatistics(Unknown Source) > at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.update_table_column_statistics(HiveMetaStore.java:3171) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hive.metastore.RetryingHMSHandler.invoke(RetryingHMSHandler.java:105) > at $Proxy10.update_table_column_statistics(Unknown Source) > at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.updateTableColumnStatistics(HiveMetaStoreClient.java:973) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:74) > at $Proxy11.updateTableColumnStatistics(Unknown Source) > at org.apache.hadoop.hive.ql.metadata.Hive.updateTableColumnStatistics(Hive.java:2198) > ... 18 more > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)