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

Thejas M Nair updated PIG-2176:
-------------------------------

    Attachment: PIG-2176.1.patch

PIG-2176.1.patch - Checks validity of uid's in schema, each time after schema 
is reset. If uid -1 is found or if there are duplicate uid is found, it throws 
an exception. No test cases have been included as there is no known case where 
such invalid schema is generated. 


> add logical plan assumption checker 
> ------------------------------------
>
>                 Key: PIG-2176
>                 URL: https://issues.apache.org/jira/browse/PIG-2176
>             Project: Pig
>          Issue Type: Improvement
>    Affects Versions: 0.9.0
>            Reporter: Thejas M Nair
>             Fix For: 0.9.1, 0.10
>
>         Attachments: PIG-2176.1.patch
>
>
> Pig expects certain things about LogicalPlan, and optimizer logic depends on 
> those to be true. Could that verifies that these assumptions are true will 
> help in catching issues early on. 
> Some of the assumptions that should be checked - 
> 1. All schema have valid uid . (not -1).
> 2. All fields in schema have distinct uid. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to