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

Julian Hyde resolved CALCITE-6576.
----------------------------------
    Resolution: Fixed

Fixed in 
[fc792668|https://github.com/apache/calcite/commit/fc792668047014beb39a012746bb94acde0d98e5];
 thanks for the PR, [~zrlpar]!

> In SET clause of UPDATE statement, allow column identifiers to be prefixed 
> with table alias
> -------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-6576
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6576
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.37.0
>            Reporter: Niels Pardon
>            Assignee: Niels Pardon
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.38.0
>
>
> The Apache Calcite SQL parser does allow to assign a table alias within an 
> UPDATE statement but the table alias can currently not be used with the 
> column identifiers within the SET section.
> The following can be parsed successfully:
> {code:sql}
> UPDATE mytable AS t SET ID=1;
> UPDATE mytable t SET ID=1;
> {code}
> But the parser fails as soon as the table alias is used with the column 
> identifier in the SET section:
> {code:sql}
> UPDATE mytable AS t SET t.ID=1;
> UPDATE mytable t SET t.ID=1;
> {code}
>  



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

Reply via email to