You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Prasad Chakka (JIRA)" <ji...@apache.org> on 2009/10/18 01:57:31 UTC

[jira] Commented: (HIVE-883) URISyntaxException when partition value contains special chars

    [ https://issues.apache.org/jira/browse/HIVE-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766986#action_12766986 ] 

Prasad Chakka commented on HIVE-883:
------------------------------------

we need to support decode (ie. get the partition key values from hdfs path name). check Warehouse.mapeSpecFromName(). This is used while partition pruning and also in 'msck repair' whose patch is pending.



> 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
>    Affects Versions: 0.4.0, 0.5.0
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
>         Attachments: HIVE-883.1.patch, HIVE-883.2.patch
>
>
> 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.<init>(Path.java:126)
>         at org.apache.hadoop.fs.Path.<init>(Path.java:45)
>         at org.apache.hadoop.hive.ql.metadata.Partition.initialize(Partition.java:146)
>         at org.apache.hadoop.hive.ql.metadata.Partition.<init>(Partition.java:123)
>         at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer$tableSpec.<init>(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.<init>(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.