hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Capriolo (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (HIVE-5038) rank operator is case-sensitive and has odd semantics
Date Fri, 09 Aug 2013 17:44:49 GMT

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

Edward Capriolo reassigned HIVE-5038:
-------------------------------------

    Assignee: Edward Capriolo
    
> 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

Mime
View raw message