[
https://issues.apache.org/jira/browse/CALCITE-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14626698#comment-14626698
]
Sean Hsuan-Yi Chu commented on CALCITE-800:
-------------------------------------------
I will make it a negative case. Besides, for the addition cases you listed:
(1). In SqlValidatorTest.testWindowFunctions2(), rule 6a includes this.
(2). In SqlValidatorTest.testWindowFunctions2(), rule 6b includes this.
(3). In SqlValidatorTest.testWindowFunctions2(), there is one.
*(4). Did you mean "partition by"? I think ROW_NUMBER requires ORDER BY
(oracle:
http://docs.oracle.com/cd/B28359_01/server.111/b28286/functions144.htm#SQLRF06100).
(5). Added one
> Window function defined within another window function should be blocked at
> validation
> --------------------------------------------------------------------------------------
>
> Key: CALCITE-800
> URL: https://issues.apache.org/jira/browse/CALCITE-800
> Project: Calcite
> Issue Type: Bug
> Reporter: Sean Hsuan-Yi Chu
> Assignee: Sean Hsuan-Yi Chu
>
> For instance,
> {code}
> select sum(deptno) over (order by
> sum(deptno) over(order by deptno))
> from emp
> {code}
> This is an invalid query. However, it passes the validation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)