You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Pradeep Kamath (JIRA)" <ji...@apache.org> on 2010/02/25 02:34:27 UTC

[jira] Updated: (PIG-1259) ResourceFieldSchema.setSchema should not allow a bag field without a Tuple as its only sub field (the tuple itself can have a schema with > 1 subfields)

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

Pradeep Kamath updated PIG-1259:
--------------------------------

    Attachment: PIG-1259.patch

Attached patch adds validation as suggested in description

> ResourceFieldSchema.setSchema should not allow a bag field without a Tuple as its only sub field  (the tuple itself can have a schema with > 1 subfields)
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PIG-1259
>                 URL: https://issues.apache.org/jira/browse/PIG-1259
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>            Reporter: Pradeep Kamath
>             Fix For: 0.7.0
>
>         Attachments: PIG-1259.patch
>
>
> Currently Schema.getPigSchema(ResourceSchema) does not allow a bag field in the ResourceSchema with a subschema containing anything other than a tuple. The tuple itself can have a schema with > 1 subfields. This check should also  be enforced in ResourceFieldSchema.setSchema()

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