viirya commented on code in PR #36851:
URL: https://github.com/apache/spark/pull/36851#discussion_r906374914
##########
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:
`_metadata` is added by datasource based on if it is required in the query.
It is not a physical column that we prune from Parquet by changing the required
schema. I don't think it follows the same logic there.
--
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]