cloud-fan commented on a change in pull request #31993:
URL: https://github.com/apache/spark/pull/31993#discussion_r614089538



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/SchemaPruning.scala
##########
@@ -21,8 +21,9 @@ 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.
+   * 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
+   * returned schema.

Review comment:
       let's call it out explicitly that the top-level fields are not pruned 
here.




-- 
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to