hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shravan Matthur Narayanamurthy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-402) order by on single field with user defined comparator fails
Date Tue, 09 Sep 2008 19:03:44 GMT

    [ 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.


Mime
View raw message