Description
from pyspark.sql.functions import transform, udf, col, array spark.range(1).select(transform(array("id"), lambda x: udf(lambda y: y)(x))).collect()
throws an internal error:
at org.apache.spark.SparkException$.internalError(SparkException.scala:88) at org.apache.spark.SparkException$.internalError(SparkException.scala:92) at org.apache.spark.sql.errors.QueryExecutionErrors$.cannotEvaluateExpressionError(QueryExecutionErrors.scala:73) at org.apache.spark.sql.catalyst.expressions.Unevaluable.eval(Expression.scala:507) at org.apache.spark.sql.catalyst.expressions.Unevaluable.eval$(Expression.scala:506)