pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Santhosh Srinivasan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-353) Certain parse errors force exit from grunt (interactive mode)
Date Fri, 22 Aug 2008 14:08:44 GMT

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

Santhosh Srinivasan commented on PIG-353:
-----------------------------------------

If colon (:) is used in the schema, the type has to be specified. The following should work
(not sure about describe though). I have removed the ':' after the identifier. The other option
is to specify the type - pair: tuple, curr: tuple, next: tuple

{code}

A = load 'data' using PigStorage() as (
x: chararray,
y: int,
z: chararray
);

B = group A by ( x );

C = foreach B generate
FOO(A) as pair (
curr ( user, seq, query ),
next ( user, seq, query )
);

describe C;

{code}

> 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_bag_constant_as_clause.patch, 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.


Mime
View raw message