Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
The case see in: https://github.com/Aaaaaaron/calcite/tree/CALCITE-4411
org.apache.calcite.rel.rel2sql.RelToSqlConverterTest#testConvertWindowToSql
Query: SELECT count(distinct employee_id) over (order by hire_date) FROM employee
Expected: SELECT COUNT(DISTINCT employee_id) OVER (ORDER BY hire_date RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) FROM foodmart.employee
Actual: SELECT COUNT(employee_id) OVER (ORDER BY hire_date RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) FROM foodmart.employee
Attachments
Issue Links
- links to