[ 
https://issues.apache.org/jira/browse/CALCITE-5486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17678921#comment-17678921
 ] 

Julian Hyde commented on CALCITE-5486:
--------------------------------------

Remember to capitalize SQL keywords (e.g. HAVING) in bug summaries.

In the description, don't just post a query. Say what currently happens and 
what you think should happen.

> 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
>            Priority: Major
>
> {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)

Reply via email to