You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ramesh Kumar Thangarajan (Jira)" <ji...@apache.org> on 2024/06/12 22:24:00 UTC

[jira] [Updated] (HIVE-28321) Support select alias in the having clause for CBO

     [ https://issues.apache.org/jira/browse/HIVE-28321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ramesh Kumar Thangarajan updated HIVE-28321:
--------------------------------------------
    Summary: Support select alias in the having clause for CBO  (was: Support alias in the having clause for CBO)

> Support select alias in the having clause for CBO
> -------------------------------------------------
>
>                 Key: HIVE-28321
>                 URL: https://issues.apache.org/jira/browse/HIVE-28321
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Ramesh Kumar Thangarajan
>            Assignee: Ramesh Kumar Thangarajan
>            Priority: Major
>
> fname=limit_pushdown_negative.q
> {code:sql}
> explain select value, sum(key) as sum from src group by value having sum > 100 limit 20
> {code}
> {noformat}
> org.apache.hadoop.hive.ql.optimizer.calcite.CalciteSemanticException: Encountered Select alias 'sum' in having clause 'sum > 100' This non standard behavior is not supported with cbo on. Turn off cbo for these queries.
> {noformat}



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