[
https://issues.apache.org/jira/browse/SPARK-51369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-51369.
---------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 50132
[https://github.com/apache/spark/pull/50132]
> [M1] Fix cursor variable in FOR statement to work with mixed case names
> -----------------------------------------------------------------------
>
> Key: SPARK-51369
> URL: https://issues.apache.org/jira/browse/SPARK-51369
> Project: Spark
> Issue Type: Sub-task
> Components: Spark Core
> Affects Versions: 4.0.0, 4.1.0
> Reporter: David Milicevic
> Assignee: David Milicevic
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> Referencing variables in FOR loops with the cursor variable name doesn't work
> if the variable name is not lower-cased. Example:
>
> {code:java}
> FOR LoopCursor AS (SELECT * FROM VALUES (1), (2), (3) AS tbl(RowValue)) DO
> SET sum = sum + LoopCursor.RowValue;
> END FOR; {code}
> This would throw an "LoopCursor.RowValue cannot be resolved" error.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]