You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Jiajun Xie (Jira)" <ji...@apache.org> on 2023/01/19 10:55:00 UTC

[jira] [Created] (CALCITE-5486) Subquery not support having alias in condition.

Jiajun Xie created CALCITE-5486:
-----------------------------------

             Summary: Subquery not support having alias in condition.
                 Key: CALCITE-5486
                 URL: https://issues.apache.org/jira/browse/CALCITE-5486
             Project: Calcite
          Issue Type: Improvement
          Components: core
            Reporter: Jiajun Xie


{code:java}
sql("select * from emp where sal >\n"
    + " (select avg(sal) as s"
    + "    from emp having ^s^ > 0"
    + "  )")
    .withConformance(SqlConformanceEnum.LENIENT)
    .fails("Column 'S' not found in any table");{code}



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