[ https://issues.apache.org/jira/browse/SPARK-51369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan reassigned SPARK-51369: ----------------------------------- Assignee: David Milicevic > [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 > > 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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org