You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Shravan Matthur Narayanamurthy (JIRA)" <ji...@apache.org> on 2008/09/09 21:03:44 UTC
[jira] Commented: (PIG-402) order by on single field with user
defined comparator fails
[ https://issues.apache.org/jira/browse/PIG-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629574#action_12629574 ]
Shravan Matthur Narayanamurthy commented on PIG-402:
----------------------------------------------------
This is what I have understood - Comparators in Hadoop assume that you know the type of key(keyClass) beforehand and do not let you configure the type dynamically. So I feel, the only way out for us is to wrap the key inside a tuple whenever, a User Defined Comparison Func is used.
If any of you have other suggestions, please comment.
> order by on single field with user defined comparator fails
> -----------------------------------------------------------
>
> Key: PIG-402
> URL: https://issues.apache.org/jira/browse/PIG-402
> Project: Pig
> Issue Type: Bug
> Affects Versions: types_branch
> Reporter: Olga Natkovich
> Assignee: Shravan Matthur Narayanamurthy
> Fix For: types_branch
>
>
> register udf.jar;
> a = load 'data';
> c = order a by $0 using MyOrderUDF();
> store c into 'out',
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.