Dear Wiki user, You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.
The following page has been changed by SanthoshSrinivasan: http://wiki.apache.org/pig/PigErrorHandlingFunctionalSpecification ------------------------------------------------------------------------------ || Retriable error || 1 || || Fatal error || 2 || + == Requirement on UDF authors == + + In order to enable warning message aggregation, UDF authors should use Hadoop counters to report warnings. UDF authors should use Pig's warning enumeration constant UDF_WARNING in order to aggregate UDF warning messages. + + === Warning Codes === + + Each warning message will be associated with a warning code. The warning code will correspond to the enum type used for the warning message aggregation. + + '''Note''' + + 1. Java does not allow enum types to be extended. Due to this limitation, UDF_WARNING is used as a placeholder for aggregating UDF warning messages. As a result, all warning messages reported by UDFs are treated uniformly. + 2. The exact warning codes along with the warning messages are to be decided. == Additional command line switches == @@ -65, +77 @@ 2. -v to include printing error messages on screen; by default error messages will be written to client side log. Using -v will also print the messages on the screen 3. -l directory where the client side log is stored; by default, logs will be stored in the current working directory and named pig_<pid>.log - == Requirement on UDF authors == - In order to enable warning message aggregation, UDF authors should use Hadoop counters to report warnings. UDF authors should use Pig's warning enumeration constant UDF_WARNING in order to aggregate UDF warning messages. + == Compendium of error messages == - '''Note''' + A list of possible error messages is listed below. This list is not comprehensive and will be modified to reflect the true error message along with the error code. - Java does not allow enum types to be extended. Due to this limitation, UDF_WARNING is used as a placeholder for aggregating UDF warning messages. As a result, all warning messages reported by UDFs are treated uniformly. + || '''Error message''' || + || Error getting LOProject's input schema || + || Cannot get source schema into LOProject || + || Map key should be a basic type || + || Operand of Regex can be CharArray only || + || Operands of AND/OR can be boolean only || + || Operands of AND/OR can be boolean only || + || Incompatible types in Multiplication Operator || + || Could not set `LOMultiply` field schema || + || Incompatible types in Division Operator || + || Could not set `LODivide` field schema || + || Incompatible types in Add Operator || + || Could not set `LOAdd` field schema || + || Incompatible types in Subtract Operator || + || Could not set `LOSubtract` field schema || + || Incompatible types in `GreaterThan` comparision operator || + || Incompatible types in `GreaterThanEqualTo` comparison operator || + || Incompatible types in `LesserThan` comparison operator || + || Incompatible types in `LesserThanEqualTo` comparison operator || + || Incompatible types in !EqualTo Comparison Operator || + || Incompatible types in !NotEqual Comparison Operator || + || Incompatible types in Mod Operator || + || Could not set `LOMod` field schema || + || NEG can be used with numbers or Bytearray only || + || Could not set `LOSubtract` field schema || + || NOT can be used with boolean only || + || Problem with input of User-defined function || + || Could not infer the matching function for org.apache.pig.builtin.SUM as multiple of them were found to match bag{bytearray}. Please use an explicit cast. || + || Could not infer the matching function for org.apache.pig.builtin.SUM as multiple or none of them fit. Please use an explicit cast. || + || Could not set `LOUserFunc` field schema || + || Condition in !BinCond must be boolean || + || Two inputs of !BinCond must have compatible schemas || + || Problem during evaluating !BinCond output type || + || Unsupported input type for !BinCond: lhs = tuple; rhs = bag || + || Could not set `LOBinCond` field schema || + || Cannot cast to bytearray || + || Cannot resolve load function to use for casting from || + || Cannot merge schemas from inputs of UNION || + || Problem while reading schemas from inputs of UNION || + || Problem while casting inputs of UNION || + || Split's cond plan can only have one output (leaf) || + || Split's condition must evaluate to boolean || + || `LOSort`'s sort plan can only have one output (leaf) || + || Problem while reconciling output schema of `LOSort` || + || Filter's cond plan can only have one output (leaf) || + || Filter's condition must evaluate to boolean. Found: int || + || Problem while reconciling output schema of `LOFilter` || + || Problem while reconciling output schema of `LOSplit` || + || Cannot resolve COGroup output schema || + || Cannot resolve COGroup output schema || + || Problem resolving `LOForEach` schema || + || Unsupported root operator in inner plan || + || Some required fields in inner plan cannot be found in input || + + == References ==
