You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2013/08/09 02:25:48 UTC

[jira] [Created] (PIG-3414) QueryParserDriver.parseSchema(String) silently returns a wrong result when a comma is missing in the schema definition

Cheolsoo Park created PIG-3414:
----------------------------------

             Summary: QueryParserDriver.parseSchema(String) silently returns a wrong result when a comma is missing in the schema definition
                 Key: PIG-3414
                 URL: https://issues.apache.org/jira/browse/PIG-3414
             Project: Pig
          Issue Type: Bug
          Components: parser
            Reporter: Cheolsoo Park
            Assignee: Cheolsoo Park
             Fix For: 0.12


QueryParserDriver provides a convenient method to parse from string to LogicalSchema. But if a comma is missing between two fields in the schema definition, it silently returns a wrong result. For example,
{code}
a:int b:long
{code}
This string will be parsed up to "a:int", and "b:long" will be silently discarded. This should rather fail with a parser exception.




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira