wangyum commented on a change in pull request #31993: URL: https://github.com/apache/spark/pull/31993#discussion_r617212769
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/SchemaPruning.scala ########## @@ -21,9 +21,12 @@ import org.apache.spark.sql.types._ object SchemaPruning { /** - * Filters the schema by the requested fields. For example, if the schema is struct<a:int, b:int>, - * and given requested field are "a", the field "b" is pruned in the returned schema. - * Note that schema field ordering at original schema is still preserved in pruned schema. + * Prunes the nested schema by the requested fields. For example, if the schema is + * struct<a:int, b:int>, and given requested field are "a", the field "b" is pruned in the Review comment: Change the example to `id int, struct<a:int, b:int>` . -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org