Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 88171 invoked from network); 17 Oct 2009 22:19:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Oct 2009 22:19:55 -0000 Received: (qmail 64681 invoked by uid 500); 17 Oct 2009 22:19:55 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 64610 invoked by uid 500); 17 Oct 2009 22:19:55 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 64599 invoked by uid 99); 17 Oct 2009 22:19:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Oct 2009 22:19:55 +0000 X-ASF-Spam-Status: No, hits=-1999.6 required=10.0 tests=ALL_TRUSTED,SUBJECT_FUZZY_TION X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Oct 2009 22:19:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4AA8B234C045 for ; Sat, 17 Oct 2009 15:19:31 -0700 (PDT) Message-ID: <525362053.1255817971291.JavaMail.jira@brutus> Date: Sat, 17 Oct 2009 15:19:31 -0700 (PDT) From: "Zheng Shao (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Reopened: (HIVE-883) URISyntaxException when partition value contains special chars In-Reply-To: <1640878678.1255758751308.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Zheng Shao reopened HIVE-883: ----------------------------- We can actually still do it, by escaping the key and value before creating the directory name. > URISyntaxException when partition value contains special chars > -------------------------------------------------------------- > > Key: HIVE-883 > URL: https://issues.apache.org/jira/browse/HIVE-883 > Project: Hadoop Hive > Issue Type: Bug > Reporter: Zheng Shao > Assignee: Zheng Shao > > When we try to insert into a partitioned table that the partition value contains special char ":", we will see an exception > {code} > stack trace: > java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: ts=2009-10-16 16:14:10 > at org.apache.hadoop.fs.Path.initialize(Path.java:140) > at org.apache.hadoop.fs.Path.(Path.java:126) > at org.apache.hadoop.fs.Path.(Path.java:45) > at org.apache.hadoop.hive.ql.metadata.Partition.initialize(Partition.java:146) > at org.apache.hadoop.hive.ql.metadata.Partition.(Partition.java:123) > at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer$tableSpec.(BaseSemanticAnalyzer.java:292) > at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getMetaData(SemanticAnalyzer.java:747) > at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:4383) > at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:87) > at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:251) > at org.apache.hadoop.hive.ql.Driver.run(Driver.java:283) > at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123) > at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181) > at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:251) > 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.util.RunJar.main(RunJar.java:166) > at org.apache.hadoop.mapred.JobShell.run(JobShell.java:194) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) > at org.apache.hadoop.mapred.JobShell.main(JobShell.java:220) > Caused by: java.net.URISyntaxException: Relative path in absolute URI: ts=2009-10-16 16:14:10 > at java.net.URI.checkPath(URI.java:1787) > at java.net.URI.(URI.java:735) > at org.apache.hadoop.fs.Path.initialize(Path.java:137) > ... 22 more > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.