[
https://issues.apache.org/jira/browse/PIG-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620706#action_12620706
]
Olga Natkovich commented on PIG-349:
------------------------------------
running without tuple name still fails for me:
grunt> A = load 'foo' as (B: bag{(I: int)});
2008-08-07 11:28:16,413 [main] ERROR org.apache.pig.tools.grunt.GruntParser -
java.io.IOException: Encountered "bag { ( I : int" at line 1, column 23.
Was expecting one of:
"int" ...
"long" ...
"float" ...
"double" ...
"chararray" ...
"bytearray" ...
"tuple" ...
"bag" "{" "(" <IDENTIFIER> ":" "tuple" ...
"bag" "{" "(" <IDENTIFIER> "(" ...
"bag" "{" "(" ")" ...
"map" ...
at org.apache.pig.PigServer.registerQuery(PigServer.java:251)
at
org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:423)
at
org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:241)
at
org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:92)
at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
at org.apache.pig.Main.main(Main.java:278)
Caused by: org.apache.pig.impl.logicalLayer.parser.ParseException: Encountered
"bag { ( I : int" at line 1, column 23.
Was expecting one of:
"int" ...
"long" ...
"float" ...
"double" ...
"chararray" ...
"bytearray" ...
"tuple" ...
"bag" "{" "(" <IDENTIFIER> ":" "tuple" ...
"bag" "{" "(" <IDENTIFIER> "(" ...
"bag" "{" "(" ")" ...
"map" ...
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.generateParseException(QueryParser.java:6894)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.jj_consume_token(QueryParser.java:6771)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.BasicType(QueryParser.java:3833)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.AtomSchema(QueryParser.java:3914)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.FieldSchema(QueryParser.java:3871)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.TupleSchema(QueryParser.java:4121)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.BaseExpr(QueryParser.java:716)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.Expr(QueryParser.java:569)
at
org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:378)
at
org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:60)
at org.apache.pig.PigServer.registerQuery(PigServer.java:248)
... 5 more
> 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.