Github user sadhen commented on a diff in the pull request: https://github.com/apache/spark/pull/22260#discussion_r213573236 --- 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 -- Well, there is a semantic change using `collect`. I will provide a unit test to verify the change or simply using `sys.error`
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org