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

Santhosh Srinivasan commented on PIG-349:
-----------------------------------------

A = load 'foo' as (B: bag{(I: int)});

Note that <Identifier>: tuple is not required as you will not be allowed to 
access the tuple at any point.

> discrepancy in bags representation
> ----------------------------------
>
>                 Key: PIG-349
>                 URL: https://issues.apache.org/jira/browse/PIG-349
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Olga Natkovich
>            Assignee: Santhosh Srinivasan
>            Priority: Critical
>             Fix For: types_branch
>
>         Attachments: bag_schema.patch
>
>
> Currently, when I describe a bag in AS clause of the load statement, I can 
> place bag of integers there. However, when describing constant bags, I can 
> only create a bag of tuples that contain integers.
> My understanding is that at this time we only support bags of tuples. If 
> that's the case, AS clause needs to match that

-- 
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