You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xu Zhang (JIRA)" <ji...@apache.org> on 2008/04/05 06:41:24 UTC
[jira] Created: (PIG-190) Got ClassCastException when using
BinaryStorage on the load statement
Got ClassCastException when using BinaryStorage on the load statement
---------------------------------------------------------------------
Key: PIG-190
URL: https://issues.apache.org/jira/browse/PIG-190
Project: Pig
Issue Type: Bug
Reporter: Xu Zhang
Assignee: Arun C Murthy
With the following Pig script, I got the exception below:
{code}
A = load '/user/xu/test/PigLoggingTest' using BinaryStorage() split by 'file';
B = stream A through `BinaryReadWrite.pl -o f`;
store B into 'results_38';
{code}
{noformat}
2008-04-04 21:34:08,619 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.lang.ClassCastException: org.apache.pig.builtin.BinaryStorage
at org.apache.pig.builtin.PigStorage.equals(PigStorage.java:93)
at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitEval(LoadOptimizer.java:85)
at org.apache.pig.impl.logicalLayer.LOEval.visit(LOEval.java:98)
at org.apache.pig.impl.logicalLayer.LOVisitor.basicVisit(LOVisitor.java:115)
at org.apache.pig.impl.logicalLayer.LOVisitor.visitStore(LOVisitor.java:106)
at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitStore(LoadOptimizer.java:123)
at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:121)
at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.optimize(LoadOptimizer.java:134)
at org.apache.pig.PigServer.optimizeAndRunQuery(PigServer.java:391)
at org.apache.pig.PigServer.registerQuery(PigServer.java:280)
at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:446)
at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:62)
at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:60)
at org.apache.pig.Main.main(Main.java:265)
2008-04-04 21:34:08,621 [main] ERROR org.apache.pig.tools.grunt.Grunt - org.apache.pig.builtin.BinaryStorage
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-190) Got ClassCastException when using
BinaryStorage on the load statement
Posted by "Xu Zhang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586498#action_12586498 ]
Xu Zhang commented on PIG-190:
------------------------------
I did not see the ClassCastException exception anymore, but the output of the streaming (ie, the contents of the results_38 is not what I expected.
> Got ClassCastException when using BinaryStorage on the load statement
> ---------------------------------------------------------------------
>
> Key: PIG-190
> URL: https://issues.apache.org/jira/browse/PIG-190
> Project: Pig
> Issue Type: Bug
> Reporter: Xu Zhang
> Assignee: Arun C Murthy
>
> With the following Pig script, I got the exception below:
> {code}
> A = load '/user/xu/test/PigLoggingTest' using BinaryStorage() split by 'file';
> B = stream A through `BinaryReadWrite.pl -o f`;
> store B into 'results_38';
> {code}
> {noformat}
> 2008-04-04 21:34:08,619 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.lang.ClassCastException: org.apache.pig.builtin.BinaryStorage
> at org.apache.pig.builtin.PigStorage.equals(PigStorage.java:93)
> at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitEval(LoadOptimizer.java:85)
> at org.apache.pig.impl.logicalLayer.LOEval.visit(LOEval.java:98)
> at org.apache.pig.impl.logicalLayer.LOVisitor.basicVisit(LOVisitor.java:115)
> at org.apache.pig.impl.logicalLayer.LOVisitor.visitStore(LOVisitor.java:106)
> at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitStore(LoadOptimizer.java:123)
> at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:121)
> at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.optimize(LoadOptimizer.java:134)
> at org.apache.pig.PigServer.optimizeAndRunQuery(PigServer.java:391)
> at org.apache.pig.PigServer.registerQuery(PigServer.java:280)
> at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:446)
> at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
> at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:62)
> at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:60)
> at org.apache.pig.Main.main(Main.java:265)
> 2008-04-04 21:34:08,621 [main] ERROR org.apache.pig.tools.grunt.Grunt - org.apache.pig.builtin.BinaryStorage
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-190) Got ClassCastException when using
BinaryStorage on the load statement
Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586519#action_12586519 ]
Arun C Murthy commented on PIG-190:
-----------------------------------
Xu, what was the expected results and what did you see?
> Got ClassCastException when using BinaryStorage on the load statement
> ---------------------------------------------------------------------
>
> Key: PIG-190
> URL: https://issues.apache.org/jira/browse/PIG-190
> Project: Pig
> Issue Type: Bug
> Reporter: Xu Zhang
> Assignee: Arun C Murthy
>
> With the following Pig script, I got the exception below:
> {code}
> A = load '/user/xu/test/PigLoggingTest' using BinaryStorage() split by 'file';
> B = stream A through `BinaryReadWrite.pl -o f`;
> store B into 'results_38';
> {code}
> {noformat}
> 2008-04-04 21:34:08,619 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.lang.ClassCastException: org.apache.pig.builtin.BinaryStorage
> at org.apache.pig.builtin.PigStorage.equals(PigStorage.java:93)
> at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitEval(LoadOptimizer.java:85)
> at org.apache.pig.impl.logicalLayer.LOEval.visit(LOEval.java:98)
> at org.apache.pig.impl.logicalLayer.LOVisitor.basicVisit(LOVisitor.java:115)
> at org.apache.pig.impl.logicalLayer.LOVisitor.visitStore(LOVisitor.java:106)
> at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitStore(LoadOptimizer.java:123)
> at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:121)
> at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.optimize(LoadOptimizer.java:134)
> at org.apache.pig.PigServer.optimizeAndRunQuery(PigServer.java:391)
> at org.apache.pig.PigServer.registerQuery(PigServer.java:280)
> at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:446)
> at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
> at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:62)
> at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:60)
> at org.apache.pig.Main.main(Main.java:265)
> 2008-04-04 21:34:08,621 [main] ERROR org.apache.pig.tools.grunt.Grunt - org.apache.pig.builtin.BinaryStorage
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PIG-190) Got ClassCastException when using
BinaryStorage on the load statement
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich resolved PIG-190.
--------------------------------
Resolution: Fixed
fixed with patch for PIG-182
> Got ClassCastException when using BinaryStorage on the load statement
> ---------------------------------------------------------------------
>
> Key: PIG-190
> URL: https://issues.apache.org/jira/browse/PIG-190
> Project: Pig
> Issue Type: Bug
> Reporter: Xu Zhang
> Assignee: Arun C Murthy
>
> With the following Pig script, I got the exception below:
> {code}
> A = load '/user/xu/test/PigLoggingTest' using BinaryStorage() split by 'file';
> B = stream A through `BinaryReadWrite.pl -o f`;
> store B into 'results_38';
> {code}
> {noformat}
> 2008-04-04 21:34:08,619 [main] ERROR org.apache.pig.tools.grunt.Grunt - java.lang.ClassCastException: org.apache.pig.builtin.BinaryStorage
> at org.apache.pig.builtin.PigStorage.equals(PigStorage.java:93)
> at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitEval(LoadOptimizer.java:85)
> at org.apache.pig.impl.logicalLayer.LOEval.visit(LOEval.java:98)
> at org.apache.pig.impl.logicalLayer.LOVisitor.basicVisit(LOVisitor.java:115)
> at org.apache.pig.impl.logicalLayer.LOVisitor.visitStore(LOVisitor.java:106)
> at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.visitStore(LoadOptimizer.java:123)
> at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:121)
> at org.apache.pig.impl.logicalLayer.optimizer.streaming.LoadOptimizer.optimize(LoadOptimizer.java:134)
> at org.apache.pig.PigServer.optimizeAndRunQuery(PigServer.java:391)
> at org.apache.pig.PigServer.registerQuery(PigServer.java:280)
> at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:446)
> at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:226)
> at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:62)
> at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:60)
> at org.apache.pig.Main.main(Main.java:265)
> 2008-04-04 21:34:08,621 [main] ERROR org.apache.pig.tools.grunt.Grunt - org.apache.pig.builtin.BinaryStorage
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.