Github user sadhen commented on a diff in the pull request: https://github.com/apache/spark/pull/22260#discussion_r213884979 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/ProjectionOverSchema.scala --- @@ -38,7 +38,7 @@ private[execution] case class ProjectionOverSchema(schema: StructType) { case GetArrayItem(child, arrayItemOrdinal) => getProjection(child).map { projection => GetArrayItem(projection, arrayItemOrdinal) } case a: GetArrayStructFields => - getProjection(a.child).map(p => (p, p.dataType)).map { + getProjection(a.child).map(p => (p, p.dataType)).collect { --- End diff -- To use `collect`, one must dive into `SPARK-4502`. This PR is intended for #22264 . I will preserve the error behavior.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org