Milan Dankovic created SPARK-57260:
--------------------------------------
Summary: 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
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]