You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Viggo Chen (Jira)" <ji...@apache.org> on 2025/06/16 12:26:00 UTC

[jira] [Commented] (CALCITE-4915) Query with unqualified common column and NATURAL JOIN fails

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

Viggo Chen commented on CALCITE-4915:
-------------------------------------

Now the sql only fails when ValidatorIdentifierExpansion is false see [test|https://github.com/apache/calcite/commit/ecee766d8e0fb7cab28aaf4ab16cfa7253b2e574]. [~julianhyde] Do you think this is a bug or a feature?

> Query with unqualified common column and NATURAL JOIN fails
> -----------------------------------------------------------
>
>                 Key: CALCITE-4915
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4915
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Query with unqualified common column and NATURAL JOIN:
> {noformat}
> SELECT deptno FROM emp NATURAL JOIN dept{noformat}
> Fails with "Column 'DEPTNO' is ambiguous" error.



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