Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
An invalid query such as:
select max(empno) over () from emp group by deptno
This query is invalid because the argument in max (i.e., empno) points at a column which is not present in Group By clause. However, Calcite does not catch it but generate a plan.
Invalid queries should fail early to reduce potential confusion.