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

Xuefu Zhang commented on HIVE-6048:
-----------------------------------

[~ashutoshc] Thanks for your feedback. Getting Path object from URI instance is 
as easy as doing Path path = new Path(uri), with no side effect, so I can try 
what you suggested and use Path whenever we can. The only thing I'm not very 
sure if there is reference to files other than from files system. I hope we 
don't have that.

However, what Hive didn't do right is to do conversion from strings to paths 
and vise versa because of the encoding/decoding problem, which is the root 
problem of those problems we have seen. Even if we do path.toString() and then 
convert the string back to path, problem can arise because of the special 
characters. This should answer [~hsubramaniyan]'s concern as well.


> Hive load data command rejects file with '+' in the name
> --------------------------------------------------------
>
>                 Key: HIVE-6048
>                 URL: https://issues.apache.org/jira/browse/HIVE-6048
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.12.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>         Attachments: HIVE-6048.1.patch, HIVE-6048.2.patch, HIVE-6048.patch
>
>
> '+' is a valid character in a file name on linux and HDFS. However, loading 
> data from such a file into table results the following error:
> {code}
> hive> load data local inpath '/home/xzhang/temp/t+est.txt' into table test;
> Copying data from file:/home/xzhang/temp/t est.txt
> No files matching path: file:/home/xzhang/temp/t est.txt
> FAILED: Execution Error, return code 3 from 
> org.apache.hadoop.hive.ql.exec.CopyTask
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to