pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheolsoo Park (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-3414) QueryParserDriver.parseSchema(String) silently returns a wrong result when a comma is missing in the schema definition
Date Sat, 10 Aug 2013 00:39:50 GMT

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

Cheolsoo Park commented on PIG-3414:
------------------------------------

I am discovering several buggy unit tests that were accidentally passing. Now I am adding
this new check, they start failing.

I will fix all the buggy unit tests in a new patch.
                
> 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
>
>         Attachments: PIG-3414-2.patch, PIG-3414-3.patch, PIG-3414-4.patch, PIG-3414-5.patch,
PIG-3414.patch
>
>
> 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

Mime
View raw message