viirya commented on code in PR #36851:
URL: https://github.com/apache/spark/pull/36851#discussion_r906323749
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/SchemaPruning.scala:
##########
@@ -103,8 +104,14 @@ object SchemaPruning extends Rule[LogicalPlan] {
}
}
+ private def containsNestedColumn(fsRelation: HadoopFsRelation): Boolean =
Review Comment:
Hmm, does nested column pruning work for metadata columns? Nested column
pruning is basically to update required schema for file datasource like
parquet.
I think metadata columns are directly reported from datasource to Spark. For
example, `FileFormat` adds metadata columns separately during reading data. It
is not covered by the nested column pruning logic.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]