[
https://issues.apache.org/jira/browse/HIVE-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735695#comment-13735695
]
Edward Capriolo commented on HIVE-5038:
---------------------------------------
Barrett have you confirmed the issue 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