You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2008/08/01 01:28:31 UTC
[jira] Created: (PIG-352) java.lang.ClassCastException when invalid
field is accessed
java.lang.ClassCastException when invalid field is accessed
-----------------------------------------------------------
Key: PIG-352
URL: https://issues.apache.org/jira/browse/PIG-352
Project: Pig
Issue Type: Bug
Affects Versions: types_branch
Reporter: Olga Natkovich
Fix For: types_branch
grunt> A = load 'foo' as (a, b, c);
grunt> B = foreach A generate $5;
2008-07-31 16:25:13,847 [main] ERROR org.apache.pig.tools.grunt.GruntParser - java.lang.ClassCastException: org.apache.pig.impl.logicalLayer.FrontendException
at org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:454)
at org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:60)
at org.apache.pig.PigServer.registerQuery(PigServer.java:248)
at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:425)
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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PIG-352) java.lang.ClassCastException when
invalid field is accessed
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich resolved PIG-352.
--------------------------------
Resolution: Fixed
pathc committed. santhosh, thanks for contributing!
> java.lang.ClassCastException when invalid field is accessed
> -----------------------------------------------------------
>
> Key: PIG-352
> URL: https://issues.apache.org/jira/browse/PIG-352
> Project: Pig
> Issue Type: Bug
> Affects Versions: types_branch
> Reporter: Olga Natkovich
> Fix For: types_branch
>
> Attachments: out_of_bound_schema_access.patch
>
>
> grunt> A = load 'foo' as (a, b, c);
> grunt> B = foreach A generate $5;
> 2008-07-31 16:25:13,847 [main] ERROR org.apache.pig.tools.grunt.GruntParser - java.lang.ClassCastException: org.apache.pig.impl.logicalLayer.FrontendException
> at org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:454)
> at org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:60)
> at org.apache.pig.PigServer.registerQuery(PigServer.java:248)
> at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:425)
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-352) java.lang.ClassCastException when invalid
field is accessed
Posted by "Santhosh Srinivasan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Santhosh Srinivasan updated PIG-352:
------------------------------------
Attachment: out_of_bound_schema_access.patch
This patch (out_of_bound_schema_access.patch) fixes the problem with accessing column numbers that are out of bound. A parse time exception is thrown with the appropriate error message.
Unit tests that still fail are:
[junit] Running org.apache.pig.test.TestBuiltin
[junit] Tests run: 23, Failures: 1, Errors: 2, Time elapsed: 14.579 sec
[junit] Test org.apache.pig.test.TestBuiltin FAILED
[junit] Running org.apache.pig.test.TestEvalPipeline
[junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 210.738 sec
[junit] Test org.apache.pig.test.TestEvalPipeline FAILED
[junit] Running org.apache.pig.test.TestFilterOpNumeric
[junit] Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 57.131 sec
[junit] Test org.apache.pig.test.TestFilterOpNumeric FAILED
[junit] Running org.apache.pig.test.TestMRCompiler
[junit] Tests run: 16, Failures: 1, Errors: 0, Time elapsed: 0.44 sec
[junit] Test org.apache.pig.test.TestMRCompiler FAILED
[junit] Running org.apache.pig.test.TestStoreOld
[junit] Tests run: 3, Failures: 0, Errors: 2, Time elapsed: 40.861 sec
[junit] Test org.apache.pig.test.TestStoreOld FAILED
> java.lang.ClassCastException when invalid field is accessed
> -----------------------------------------------------------
>
> Key: PIG-352
> URL: https://issues.apache.org/jira/browse/PIG-352
> Project: Pig
> Issue Type: Bug
> Affects Versions: types_branch
> Reporter: Olga Natkovich
> Fix For: types_branch
>
> Attachments: out_of_bound_schema_access.patch
>
>
> grunt> A = load 'foo' as (a, b, c);
> grunt> B = foreach A generate $5;
> 2008-07-31 16:25:13,847 [main] ERROR org.apache.pig.tools.grunt.GruntParser - java.lang.ClassCastException: org.apache.pig.impl.logicalLayer.FrontendException
> at org.apache.pig.impl.logicalLayer.parser.QueryParser.Parse(QueryParser.java:454)
> at org.apache.pig.impl.logicalLayer.LogicalPlanBuilder.parse(LogicalPlanBuilder.java:60)
> at org.apache.pig.PigServer.registerQuery(PigServer.java:248)
> at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:425)
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.