Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
We know that calcite can support HAVING alias by setting SqlConformanceEnum.LENIENT
sql("select count(empno) as e from emp having e > 10")
.withConformance(lenient).ok();
but when I add one aggregate function in HAVING clause, it will fail.
sql("select count(empno) as e from emp having ^e^ > 10 and count(empno) > 10 ") .withConformance(lenient).fails("Column 'E' not found in any table"); // I think it should be ok
Attachments
Issue Links
- links to