pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (PIG-1985) Utils.getSchemaFromString does not use the new parser, and thus fails to parse valid schema
Date Thu, 05 May 2011 23:39:03 GMT

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

Daniel Dai resolved PIG-1985.
-----------------------------

    Resolution: Fixed

This is done as part of PIG-1775. There is no need for this patch. Close the ticket.

> Utils.getSchemaFromString does not use the new parser, and thus fails to parse valid
schema
> -------------------------------------------------------------------------------------------
>
>                 Key: PIG-1985
>                 URL: https://issues.apache.org/jira/browse/PIG-1985
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.9.0
>            Reporter: Woody Anderson
>            Assignee: Daniel Dai
>             Fix For: 0.9.0, 0.10
>
>         Attachments: PIG-1985-1.patch
>
>
> I've been told this is because Utils.getSchemaFromString does not use the new parser
to parse the schema, so we should update the impl to use the new parser:
> {code}
> Utils.getSchemaFromString("f: map[]")
> {code}
> results in: (org.apache.pig.impl.logicalLayer.schema.Schema) {f: map[]}
> {code}
> Utils.getSchemaFromString("f: map[int]")
> {code}
> results in: An exception occurred: org.apache.pig.impl.logicalLayer.parser.ParseException
> ..
> org.apache.pig.impl.logicalLayer.parser.ParseException: Encountered " "map" "map "" at
line 1, column 4.
> Was expecting one of:
>     "int" ...
>     "long" ...
>     "float" ...
>     "double" ...
>     "chararray" ...
>     "bytearray" ...
>     "int" ...
>     "long" ...
>     "float" ...
>     "double" ...
>     "chararray" ...
>     "bytearray" ...	 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message