You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Sean Hsuan-Yi Chu (JIRA)" <ji...@apache.org> on 2015/07/14 01:51:04 UTC
[jira] [Commented] (CALCITE-800) Window function defined within
another window function should be blocked at validation
[ https://issues.apache.org/jira/browse/CALCITE-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14625591#comment-14625591 ]
Sean Hsuan-Yi Chu commented on CALCITE-800:
-------------------------------------------
In SqlValidatorTest.testWindowClause, we have a positive test case :
"window w as (order by rank() over (order by sal))"
Is this window is invalid? We tried a similar thing is postgres:
{code}
postgres=# select rank() over(order by row_number() over(order by XXX)) from YYY;
ERROR: window functions are not allowed in window definitions
{code}
Is it alright to remove that test case ? Otherwise, our patch will always break that 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)