[
https://issues.apache.org/jira/browse/PIG-773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727674#action_12727674
]
Santhosh Srinivasan commented on PIG-773:
-----------------------------------------
A comment on the latest patch (pig-773_v4.patch):
Index: src/org/apache/pig/data/DataType.java
===================================================================
Since the bag schema contains the tuple schema, bag schema should set the two
level access to true.
{code}
@@ -998,8 +999,8 @@
schema = schemas.get(0);
if(null == schema) {
Schema.FieldSchema tupleFs = new
Schema.FieldSchema(null, null, TUPLE);
- Schema bagSchema = new Schema(tupleFs);
- return new Schema.FieldSchema(null, null, BAG);
+ bagSchema = new Schema(tupleFs);
+ return new Schema.FieldSchema(null, bagSchema, BAG);
{code}
> Empty complex constants (empty bag, empty tuple and empty map) should be
> supported
> ----------------------------------------------------------------------------------
>
> Key: PIG-773
> URL: https://issues.apache.org/jira/browse/PIG-773
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.3.0
> Reporter: Pradeep Kamath
> Assignee: Ashutosh Chauhan
> Priority: Minor
> Fix For: 0.4.0
>
> Attachments: pig-773.patch, pig-773_v2.patch, pig-773_v3.patch,
> pig-773_v4.patch
>
>
> We should be able to create empty bag constant using {}, empty tuple constant
> using (), empty map constant using [] within a pig script
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.