[
https://issues.apache.org/jira/browse/SPARK-57260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Max Gekk resolved SPARK-57260.
------------------------------
Fix Version/s: 4.3.0
Resolution: Fixed
Issue resolved by pull request 56321
[https://github.com/apache/spark/pull/56321]
> Cannot use SQL variable in the `replace where` clause of an `insert into`
> statement.
> ------------------------------------------------------------------------------------
>
> Key: SPARK-57260
> URL: https://issues.apache.org/jira/browse/SPARK-57260
> Project: Spark
> Issue Type: Bug
> Components: Spark Core
> Affects Versions: 4.3.0
> Reporter: Milan Dankovic
> Assignee: Milan Dankovic
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.3.0
>
>
> It seems impossible to use a variable in the `replace where` clause of an
> `insert into` statement.
> {code:java}
> begin
> declare x int default 1;
> insert into table_y
> replace where y = x
> values (x);
> end {code}
> fails with:
> {code:java}
> A column, variable, or function parameter with name x cannot be resolved.
> {code}
> This happens for session and scripting local variables.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]