[
https://issues.apache.org/jira/browse/CALCITE-6576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17882156#comment-17882156
]
Niels Pardon commented on CALCITE-6576:
---------------------------------------
I created https://issues.apache.org/jira/browse/CALCITE-6584 for the validator
implementation assuming we want to cover that in a separate issue.
> 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)