[ https://issues.apache.org/jira/browse/SPARK-35636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karen Feng updated SPARK-35636: ------------------------------- Description: Currently, lambda keys can be referenced outside of the lambda function: Project [transform(keys#0, lambdafunction(_extract_v1#0, lambda key#0, false)) AS a#0] +- 'Join Cross :- Project [kvs#0[lambda key#0].v1 AS _extract_v1#0] : +- LocalRelation <empty>, [kvs#0] +- LocalRelation <empty>, [keys#0] This should be unchanged from the original state: Project [transform(keys#418, lambdafunction(kvs#417[lambda key#420].v1, lambda key#420, false)) AS a#419] +- Join Cross :- LocalRelation <empty>, [kvs#417] +- LocalRelation <empty>, [keys#418] was: Currently, lambda keys are referenced outside of the lambda function: Project [transform(keys#0, lambdafunction(_extract_v1#0, lambda key#0, false)) AS a#0] +- 'Join Cross :- Project [kvs#0[lambda key#0].v1 AS _extract_v1#0] : +- LocalRelation <empty>, [kvs#0] +- LocalRelation <empty>, [keys#0] This should be unchanged from the original state: Project [transform(keys#418, lambdafunction(kvs#417[lambda key#420].v1, lambda key#420, false)) AS a#419] +- Join Cross :- LocalRelation <empty>, [kvs#417] +- LocalRelation <empty>, [keys#418] > Do not push lambda variables out of lambda functions in NestedColumnAliasing > ---------------------------------------------------------------------------- > > Key: SPARK-35636 > URL: https://issues.apache.org/jira/browse/SPARK-35636 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 3.1.0 > Reporter: Karen Feng > Priority: Major > > Currently, lambda keys can be referenced outside of the lambda function: > Project [transform(keys#0, lambdafunction(_extract_v1#0, lambda key#0, > false)) AS a#0] > +- 'Join Cross > :- Project [kvs#0[lambda key#0].v1 AS _extract_v1#0] > : +- LocalRelation <empty>, [kvs#0] > +- LocalRelation <empty>, [keys#0] > This should be unchanged from the original state: > Project [transform(keys#418, lambdafunction(kvs#417[lambda key#420].v1, > lambda key#420, false)) AS a#419] > +- Join Cross > :- LocalRelation <empty>, [kvs#417] > +- LocalRelation <empty>, [keys#418] -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org