pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olga Natkovich (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-732) Utility UDFs
Date Thu, 30 Apr 2009 01:02:30 GMT

    [ https://issues.apache.org/jira/browse/PIG-732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704426#action_12704426
] 

Olga Natkovich commented on PIG-732:
------------------------------------

Ankur, thanks for your contribution and sorry for the delay.

I integrated your patch and and ran the tests. I see one failure in the unit tests:

 [junit] Test org.apache.pig.piggybank.test.evaluation.util.TestTopN FAILED

The log file contains the following:

Testsuite: org.apache.pig.piggybank.test.evaluation.util.TestTopN
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.17 sec

Testcase: testTopN took 0.152 sec
    Caused an ERROR
General Exception executing function: java.lang.ClassCastException: java.lang.Long cannot
be cast to java.lang.Integer
java.lang.RuntimeException: General Exception executing function: java.lang.ClassCastException:
java.lang.Long cannot be cast to java.lang.Integer
    at org.apache.pig.piggybank.evaluation.util.TopN.exec(TopN.java:112)
    at org.apache.pig.piggybank.test.evaluation.util.TestTopN.testTopN(Unknown Source)


> Utility UDFs 
> -------------
>
>                 Key: PIG-732
>                 URL: https://issues.apache.org/jira/browse/PIG-732
>             Project: Pig
>          Issue Type: New Feature
>            Reporter: Ankur
>            Priority: Minor
>         Attachments: udf.v1.patch, udf.v2.patch, udf.v3.patch, udf.v4.patch
>
>
> Two utility UDFs and their respective test cases.
> 1. TopN - Accepts number of tuples (N) to retain in output, field number (type long)
to use for comparison, and an sorted/unsorted bag of tuples. It outputs a bag containing top
N tuples.
> 2. SearchQuery - Accepts an encoded URL from any of the 4 search engines (Yahoo, Google,
AOL, Live) and extracts and normalizes the search query present in it.

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