[ https://issues.apache.org/jira/browse/PIG-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13024928#comment-13024928 ]
Richard Ding commented on PIG-1976: ----------------------------------- +1 > One more TwoLevelAccess to remove > --------------------------------- > > Key: PIG-1976 > URL: https://issues.apache.org/jira/browse/PIG-1976 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.9.0 > Reporter: Daniel Dai > Assignee: Daniel Dai > Fix For: 0.9.0 > > Attachments: PIG-1976-1.patch > > > We removed two level access in PIG-847. However, there is another occurrence > we miss in ResourceSchema.java: > {code} > if (type == DataType.BAG && fieldSchema.schema != null > && !fieldSchema.schema.isTwoLevelAccessRequired()) { > log.info("Insert two-level access to Resource Schema"); > FieldSchema fs = new FieldSchema("t", fieldSchema.schema); > inner = new Schema(fs); > } > {code} > Though by default schema.isTwoLevelAccessRequired is false, we shall not use > this flag in Pig. User could set this flag in legacy UDF. > Thanks Woody uncovered this. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira