Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
3.1.1
Description
Python side also has the same issue as SPARK-34794
from pyspark.sql.functions import * df = sql("SELECT array(1, 2, 3) as numbers, array('a', 'b', 'c') as letters") df.select( transform( "numbers", lambda n: transform("letters", lambda l: struct(n.alias("n"), l.alias("l"))) ) ).show()
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |transform(numbers, lambdafunction(transform(letters, lambdafunction(struct(namedlambdavariable() AS n, namedlambdavariable() AS l), namedlambdavariable())), namedlambdavariable()))| +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | [[{a, a}, {b, b},...| +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
Attachments
Issue Links
- relates to
-
SPARK-34794 Nested higher-order functions broken in DSL
- Resolved
- links to