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 930D49F1D for ; Tue, 25 Oct 2011 19:26:56 +0000 (UTC) Received: (qmail 73901 invoked by uid 500); 25 Oct 2011 19:26:56 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 73816 invoked by uid 500); 25 Oct 2011 19:26:56 -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 73807 invoked by uid 500); 25 Oct 2011 19:26:56 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 73804 invoked by uid 99); 25 Oct 2011 19:26:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 19:26:56 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 19:26:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 47AB031B058 for ; Tue, 25 Oct 2011 19:24:33 +0000 (UTC) Date: Tue, 25 Oct 2011 19:24:33 +0000 (UTC) From: "jiraposter@reviews.apache.org (Commented) (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <997694142.14789.1319570673294.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <735126768.7409.1318963631399.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HIVE-2510) Hive throws Null Pointer Exception upon CREATE TABLE . .... if the given doesn't exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2510?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13135= 349#comment-13135349 ]=20 jiraposter@reviews.apache.org commented on HIVE-2510: ----------------------------------------------------- ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/2426/ ----------------------------------------------------------- (Updated 2011-10-25 19:25:02.433521) Review request for Yongqiang He, Ning Zhang and Kevin Wilfong. Summary ------- Now when creating table in specific database, if that database doesn't exis= t Hive will return an error informing about that, instead of throwing Null = Pointer Exception. Null Pointer happens during semantic analysis, so it see= ms reasonable to return an error before the code that would throw null poin= ter (Warehouse.getDatabasePath()) executes. This addresses bug HIVE-2510. https://issues.apache.org/jira/browse/HIVE-2510 Diffs ----- trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.j= ava 1187647=20 trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java 1= 187647=20 trunk/ql/src/test/queries/clientnegative/create_table_failure1.q PRE-CREA= TION=20 trunk/ql/src/test/queries/clientnegative/create_table_failure2.q PRE-CREA= TION=20 trunk/ql/src/test/queries/clientnegative/create_table_failure3.q PRE-CREA= TION=20 trunk/ql/src/test/queries/clientnegative/create_table_failure4.q PRE-CREA= TION=20 trunk/ql/src/test/queries/clientpositive/input45.q PRE-CREATION=20 trunk/ql/src/test/results/clientnegative/create_table_failure1.q.out PRE-= CREATION=20 trunk/ql/src/test/results/clientnegative/create_table_failure2.q.out PRE-= CREATION=20 trunk/ql/src/test/results/clientnegative/create_table_failure3.q.out PRE-= CREATION=20 trunk/ql/src/test/results/clientnegative/create_table_failure4.q.out PRE-= CREATION=20 trunk/ql/src/test/results/clientpositive/input45.q.out PRE-CREATION=20 Diff: https://reviews.apache.org/r/2426/diff Testing ------- Run some sample queries and it seemed to work.=20 Thanks, Robert =20 > Hive throws Null Pointer Exception upon CREATE TABLE . .... if the given doesn't exist > -------------------------------------------------------------------------= ------------------------------------------------ > > Key: HIVE-2510 > URL: https://issues.apache.org/jira/browse/HIVE-2510 > Project: Hive > Issue Type: Bug > Reporter: Robert Sur=C3=B3wka > Assignee: Robert Sur=C3=B3wka > Priority: Trivial > Attachments: HIVE-2510.1.patch, HIVE-2510.2.patch, HIVE-2510.3.pa= tch, HIVE-2510.4.patch > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira