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 88F361017E for ; Thu, 9 Jan 2014 19:51:51 +0000 (UTC) Received: (qmail 87157 invoked by uid 500); 9 Jan 2014 19:51:50 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 87098 invoked by uid 500); 9 Jan 2014 19:51:50 -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 87089 invoked by uid 500); 9 Jan 2014 19:51:50 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 87086 invoked by uid 99); 9 Jan 2014 19:51:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jan 2014 19:51:50 +0000 Date: Thu, 9 Jan 2014 19:51:50 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5032) Enable hive creating external table at the root directory of DFS 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-5032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866964#comment-13866964 ] Ashutosh Chauhan commented on HIVE-5032: ---------------------------------------- Patch does seem to fix the issue at end. But correct solution would be to have pathToPartitionInfo map to be of type Map and than do search using path.getParent() instead of fiddling with indexOf("/"). Thats cleaner solution and we can avoid all these special casing for corner cases. Ofcourse, this is bigger change compared to current patch. I wonder, if you want to do it that way? > Enable hive creating external table at the root directory of DFS > ---------------------------------------------------------------- > > Key: HIVE-5032 > URL: https://issues.apache.org/jira/browse/HIVE-5032 > Project: Hive > Issue Type: Bug > Reporter: Shuaishuai Nie > Assignee: Shuaishuai Nie > Attachments: HIVE-5032.1.patch, HIVE-5032.2.patch, HIVE-5032.3.patch > > > Creating external table using HIVE with location point to the root directory of DFS will fail because the function HiveFileFormatUtils#doGetPartitionDescFromPath treat authority of the path the same as folder and cannot find a match in the "pathToPartitionInfo" table when doing prefix match. -- This message was sent by Atlassian JIRA (v6.1.5#6160)