[ 
https://issues.apache.org/jira/browse/PIG-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dai updated PIG-2209:
----------------------------

      Resolution: Fixed
    Hadoop Flags: Reviewed
          Status: Resolved  (was: Patch Available)

Unit tests pass. test-patch:
     [exec] -1 overall.  
     [exec] 
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec] 
     [exec]     +1 tests included.  The patch appears to include 4 new or 
modified tests.
     [exec] 
     [exec]     +1 javadoc.  The javadoc tool did not generate any warning 
messages.
     [exec] 
     [exec]     +1 javac.  The applied patch does not increase the total number 
of javac compiler warnings.
     [exec] 
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs 
warnings.
     [exec] 
     [exec]     -1 release audit.  The applied patch generated 473 release 
audit warnings (more than the trunk's current 466 warnings).

Patch committed to trunk and 0.10 branch.
                
> JsonMetadata fails to find schema for glob paths
> ------------------------------------------------
>
>                 Key: PIG-2209
>                 URL: https://issues.apache.org/jira/browse/PIG-2209
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10
>            Reporter: Dmitriy V. Ryaboy
>            Assignee: Daniel Dai
>            Priority: Blocker
>             Fix For: 0.10
>
>         Attachments: PIG-2209-1.patch
>
>
> JsonMetadata, used in PigStorage to work with serialized schemas, does not 
> correctly interpret paths like '/foo/bar/{1,2,3}' and throws an exception:
> {code}
> Caused by: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1131: 
> Could not find schema file for file:///foo/bar/{1,2}
>       at 
> org.apache.pig.builtin.JsonMetadata.nullOrException(JsonMetadata.java:217)
>       at org.apache.pig.builtin.JsonMetadata.getSchema(JsonMetadata.java:186)
>       at org.apache.pig.builtin.PigStorage.getSchema(PigStorage.java:438)
>       at 
> org.apache.pig.newplan.logical.relational.LOLoad.getSchemaFromMetaData(LOLoad.java:150)
>       ... 17 more
> Caused by: java.io.IOException: Unable to read file:///foo/bar/z/{1,2}
>       at 
> org.apache.pig.builtin.JsonMetadata.findMetaFile(JsonMetadata.java:106)
>       at org.apache.pig.builtin.JsonMetadata.getSchema(JsonMetadata.java:183)
>       ... 19 more
> Caused by: java.net.URISyntaxException: Illegal character in path at index 
> 36: file:///foo/bar/{1,2}
>       at java.net.URI$Parser.fail(URI.java:2809)
>       at java.net.URI$Parser.checkChars(URI.java:2982)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to