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

Santhosh Srinivasan updated PIG-353:
------------------------------------

    Attachment: bag_schema_in_pigscript_parser.patch

The attached patch addresses the issue of declaring bag schemas using grunt. 
PigScriptParser.java was modified to have an additional lexical state for 
schemas. The opening curly brace '{' in the bag schema was being treated as the 
delimiter of a nested block. With the additional lexical state the schema 
definition is tokenized appropriately.

Unit test cases that still fail are:

    [junit] Running org.apache.pig.test.TestBuiltin
    [junit] Tests run: 23, Failures: 1, Errors: 2, Time elapsed: 14.305 sec
    [junit] Test org.apache.pig.test.TestBuiltin FAILED

    [junit] Running org.apache.pig.test.TestEvalPipeline
    [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 195.352 sec
    [junit] Test org.apache.pig.test.TestEvalPipeline FAILED

    [junit] Running org.apache.pig.test.TestFilterOpNumeric
    [junit] Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 57.163 sec
    [junit] Test org.apache.pig.test.TestFilterOpNumeric FAILED

    [junit] Running org.apache.pig.test.TestMRCompiler
    [junit] Tests run: 16, Failures: 1, Errors: 0, Time elapsed: 0.353 sec
    [junit] Test org.apache.pig.test.TestMRCompiler FAILED

    [junit] Running org.apache.pig.test.TestStoreOld
    [junit] Tests run: 3, Failures: 0, Errors: 2, Time elapsed: 39.973 sec
    [junit] Test org.apache.pig.test.TestStoreOld FAILED

> Certain parse errors force exit from grunt (interactive mode)
> -------------------------------------------------------------
>
>                 Key: PIG-353
>                 URL: https://issues.apache.org/jira/browse/PIG-353
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Santhosh Srinivasan
>             Fix For: types_branch
>
>         Attachments: bag_schema_in_pigscript_parser.patch
>
>
> I tried the following load:
> A = load 'foo' as (B: bag{T: tuple(I: int)});
> and it gave me a huge stack and through me out of grunt

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to