cloud-fan commented on a change in pull request #31993:
URL: https://github.com/apache/spark/pull/31993#discussion_r617276236
##########
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:
+ * `id int, struct<a:int, b:int>`, and given requested field are "a", the
field "b" is pruned
Review comment:
`and given requested field are "a"` -> `and given requested field "s.a"`
--
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]