You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "xiong duan (Jira)" <ji...@apache.org> on 2025/07/17 02:04:00 UTC

[jira] [Created] (CALCITE-7100) Invalid unparse for OVER() in OracleDialect

xiong duan created CALCITE-7100:
-----------------------------------

             Summary: Invalid unparse for OVER() in OracleDialect
                 Key: CALCITE-7100
                 URL: https://issues.apache.org/jira/browse/CALCITE-7100
             Project: Calcite
          Issue Type: Bug
            Reporter: xiong duan


 

The SQL:
{code:java}
select sum(count(*)) over() from EMPLOYEE;
{code}
The Calcite generate the Oracle Dialect SQL is:
{code:java}
select sum(count(*)) over(RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) from EMPLOYEE; {code}
Which throws exception in Oracle:
{code:java}
ORA-30485: missing ORDER BY expression in the window specification {code}
 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)