You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Araceli Henley (JIRA)" <ji...@apache.org> on 2009/02/12 22:57:02 UTC
[jira] Created: (PIG-675) Improve backend error messages
Improve backend error messages
------------------------------
Key: PIG-675
URL: https://issues.apache.org/jira/browse/PIG-675
Project: Pig
Issue Type: Bug
Environment: i686 i386 GNU/Linux
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
Reporter: Araceli Henley
Priority: Minor
#########################################################################
LOAD AND STORE TEST
#########################################################################
DESCRIPTION ERROR: empty parameter for file in Load Statement
TEST: 109,
PIG SCRIPT: q\A = load '' using PigStorage(); STORE A INTO ':OUTPATH:' USING PigStorage();\,
CURRENT ERROR MESSAGE: "ERROR 2118: Unable to create input slice",
RECOMMENDED ERROR MESSAGE: - It should indicate that this is an invalid input file for a load statement
#########################################################################
AGGREGATE FUNC TESTS
#########################################################################
DESCRIPTION ERROR - MAX with missing argument
TEST: 138,
PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE MAX(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
RECOMMENDED ERROR MESSAGE: - invalid use of MAX function or invalid argument for MAX function ...
#########################################################################
DESCRIPTION ERROR - MIN with missing argument
TEST: 149,
PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE MIN(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
RECOMMENDED ERROR MESSAGE: - MIN arguments cannot be empty
#########################################################################
DESCRIPTION ERROR - SUM with missing argument
TEST: 161,
PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE SUM(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
#########################################################################
DESCRIPTION ERROR - COUNT with missing argument
TEST: 183,
PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE COUNT(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
RECOMMENDED ERROR MESSAGE: - COUNT requires parenthesis.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIG-675) Improve backend error messages
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich updated PIG-675:
-------------------------------
Fix Version/s: 0.9.0
> Improve backend error messages
> ------------------------------
>
> Key: PIG-675
> URL: https://issues.apache.org/jira/browse/PIG-675
> Project: Pig
> Issue Type: Bug
> Environment: i686 i386 GNU/Linux
> java version "1.6.0_02"
> Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
> Reporter: Araceli Henley
> Priority: Minor
> Fix For: 0.9.0
>
>
> #########################################################################
> LOAD AND STORE TEST
> #########################################################################
> DESCRIPTION ERROR: empty parameter for file in Load Statement
> TEST: 109,
> PIG SCRIPT: q\A = load '' using PigStorage(); STORE A INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2118: Unable to create input slice",
> RECOMMENDED ERROR MESSAGE: - It should indicate that this is an invalid input file for a load statement
> #########################################################################
> AGGREGATE FUNC TESTS
> #########################################################################
> DESCRIPTION ERROR - MAX with missing argument
> TEST: 138,
> PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE MAX(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
> RECOMMENDED ERROR MESSAGE: - invalid use of MAX function or invalid argument for MAX function ...
> #########################################################################
> DESCRIPTION ERROR - MIN with missing argument
> TEST: 149,
> PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE MIN(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
> RECOMMENDED ERROR MESSAGE: - MIN arguments cannot be empty
> #########################################################################
> DESCRIPTION ERROR - SUM with missing argument
> TEST: 161,
> PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE SUM(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
> #########################################################################
> DESCRIPTION ERROR - COUNT with missing argument
> TEST: 183,
> PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE COUNT(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
> RECOMMENDED ERROR MESSAGE: - COUNT requires parenthesis.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (PIG-675) Improve backend error messages
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich reassigned PIG-675:
----------------------------------
Assignee: niraj rai
I don't think the first problem is valid since we no longer using slicer but we should check if we give a good error message in the smiliar situation in the latest code
> Improve backend error messages
> ------------------------------
>
> Key: PIG-675
> URL: https://issues.apache.org/jira/browse/PIG-675
> Project: Pig
> Issue Type: Bug
> Environment: i686 i386 GNU/Linux
> java version "1.6.0_02"
> Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
> Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
> Reporter: Araceli Henley
> Assignee: niraj rai
> Priority: Minor
> Fix For: 0.9.0
>
>
> #########################################################################
> LOAD AND STORE TEST
> #########################################################################
> DESCRIPTION ERROR: empty parameter for file in Load Statement
> TEST: 109,
> PIG SCRIPT: q\A = load '' using PigStorage(); STORE A INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2118: Unable to create input slice",
> RECOMMENDED ERROR MESSAGE: - It should indicate that this is an invalid input file for a load statement
> #########################################################################
> AGGREGATE FUNC TESTS
> #########################################################################
> DESCRIPTION ERROR - MAX with missing argument
> TEST: 138,
> PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE MAX(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
> RECOMMENDED ERROR MESSAGE: - invalid use of MAX function or invalid argument for MAX function ...
> #########################################################################
> DESCRIPTION ERROR - MIN with missing argument
> TEST: 149,
> PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE MIN(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
> RECOMMENDED ERROR MESSAGE: - MIN arguments cannot be empty
> #########################################################################
> DESCRIPTION ERROR - SUM with missing argument
> TEST: 161,
> PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE SUM(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
> #########################################################################
> DESCRIPTION ERROR - COUNT with missing argument
> TEST: 183,
> PIG SCRIPT: q\ A =LOAD ':INPATH:/types/DataAll' USING PigStorage() AS ( Fint:int, Flong:long, Fdouble:double, Ffloat:float, Fchar:chararray, Fchararray:chararray, Fbytearray:bytearray, Fmap:map[], Fbag:BAG{ t:tuple( name, age, avg ) }, Ftuple:( name:chararray, age:int, avg:float) );B =GROUP A ALL; X =FOREACH B GENERATE COUNT(); STORE X INTO ':OUTPATH:' USING PigStorage();\,
> CURRENT ERROR MESSAGE: "ERROR 2064: Unsupported root type in LOForEach: LOUserFunc",
> RECOMMENDED ERROR MESSAGE: - COUNT requires parenthesis.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.