[
https://issues.apache.org/jira/browse/HIVE-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735702#comment-13735702
]
Edward Capriolo commented on HIVE-5038:
---------------------------------------
I confirmed in trunk that the parse issue is no longer and issue
{code}
Time taken: 0.487 seconds
hive> 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);
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
hive> 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);
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
{code}
I think this was fixed in HIVE-4879, or one of the other ranking cleanups I
did. RANK() should not accept arguments, none of the unit tests take arguments.
I am going to mark this as closed since it is fixed in trunk. If the actual
results are wrong (I think your suggesting that )please open another ticket
> 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