You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Edward Capriolo (JIRA)" <ji...@apache.org> on 2013/08/10 05:04:48 UTC

[jira] [Resolved] (HIVE-5038) rank operator is case-sensitive and has odd semantics

     [ https://issues.apache.org/jira/browse/HIVE-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Capriolo resolved HIVE-5038.
-----------------------------------

    Resolution: Invalid

Ranking functions not matching name is fixed in trunk.
                
> rank operator is case-sensitive and has odd semantics
> -----------------------------------------------------
>
>                 Key: HIVE-5038
>                 URL: https://issues.apache.org/jira/browse/HIVE-5038
>             Project: Hive
>          Issue Type: Bug
>          Components: PTF-Windowing
>    Affects Versions: 0.11.0
>            Reporter: Barrett Strausser
>            Assignee: Edward Capriolo
>            Priority: Minor
>         Attachments: fake_customer_order_data.csv, rank_semantics_test_data.hive.sql
>
>
> Issue 1 : The rank operator is sensitive to case.
> The following works :
> SELECT
>         fco.cmscustid,fco.orderdate, rank() w
> FROM
>         fake_customer_orders fco
> window
>         w as (partition by fco.cmscustid  order by fco.orderdate)
> While this does not :
> SELECT 
>         fco.cmscustid,fco.orderdate, RANK() w 
> FROM 
>         fake_customer_orders fco   
> window   
>         w as (partition by fco.cmscustid  order by fco.orderdate);
> The failing call returns :
> FAILED: SemanticException Failed to breakup Windowing invocations into Groups. At least 1 group must only depend on input columns. Also check for circular dependencies.
> Underlying error: org.apache.hadoop.hive.ql.exec.UDFArgumentTypeException: One or more arguments are expected.
> Issue 2: 
> The following works :
> SELECT 
>         fco.cmscustid,fco.orderdate, RANK(fco.orderdate) w
> FROM 
>         fake_customer_orders fco   
> window   
>         w as (partition by fco.cmscustid  order by fco.orderdate);
> This does not :
> SELECT 
>         fco.cmscustid,fco.orderdate, rank(fco.orderdate) w
> FROM 
>         fake_customer_orders fco   
> window   
>         w as (partition by fco.cmscustid  order by fco.orderdate);
> and returns - 
> FAILED: SemanticException Failed to breakup Windowing invocations into Groups. At least 1 group must only depend on input columns. Also check for circular dependencies.
> Underlying error: Ranking Functions can take no arguments
> This has been reproduced by mutliple users and probably pertains to other PTF/windowing functions as well although I haven't duplicated them
> In no case is the returned output the expected output. I'll file another jira for this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira