You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Graham Lea (JIRA)" <ji...@apache.org> on 2011/09/26 03:47:26 UTC
[jira] [Commented] (PIG-2303) Documentation says the MAX function
can be used on chararray, but it can't
[ https://issues.apache.org/jira/browse/PIG-2303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13114431#comment-13114431 ]
Graham Lea commented on PIG-2303:
---------------------------------
Note: The error I was getting on entering the line using MIN + MAX into Grunt was:
{code}
ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1022: Type mismatch merging schema prefix. Field Schema: double. Other Field Schema: fieldName: chararray
{code}
(Just adding this to help people searching for this error message to find a solution.)
> Documentation says the MAX function can be used on chararray, but it can't
> --------------------------------------------------------------------------
>
> Key: PIG-2303
> URL: https://issues.apache.org/jira/browse/PIG-2303
> Project: Pig
> Issue Type: Bug
> Components: documentation
> Reporter: Graham Lea
> Priority: Trivial
> Labels: documentation
>
> Here: http://pig.apache.org/docs/r0.9.0/func.html#max
> It says MIN/Max can be used on chararray, but the result of those functions is always a double.
> Had to search through the Pig Javadoc to find that I should use StringMin/StringMax instead.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira