hive-dev mailing list archives

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

             Summary: 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
            Priority: Minor


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