Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
3.1.1
Description
R's higher order functions also have the same problem with SPARK-34794:
df <- sql("SELECT array(1, 2, 3) as numbers, array('a', 'b', 'c') as letters") collect(select( df, array_transform("numbers", function(number) { array_transform("letters", function(latter) { struct(alias(number, "n"), alias(latter, "l")) }) }) ))
transform(numbers, lambdafunction(transform(letters, lambdafunction(struct(namedlambdavariable() AS n, namedlambdavariable() AS l), namedlambdavariable())), namedlambdavariable())) 1 a, a, b, b, c, c, a, a, b, b, c, c, a, a, b, b, c, c
Attachments
Issue Links
- relates to
-
SPARK-34794 Nested higher-order functions broken in DSL
- Resolved
- links to