viirya commented on a change in pull request #32194:
URL: https://github.com/apache/spark/pull/32194#discussion_r614543508



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/SchemaPruning.scala
##########
@@ -36,7 +38,8 @@ object SchemaPruning {
       .reduceLeft(_ merge _)
     val dataSchemaFieldNames = dataSchema.fieldNames.toSet
     val mergedDataSchema =
-      StructType(mergedSchema.filter(f => 
dataSchemaFieldNames.contains(f.name)))
+      StructType(mergedSchema.filter(f => 
dataSchemaFieldNames.exists(resolver(_, f.name))

Review comment:
       Oh, I see. SPARK-34963 fixes the nested column extractor case. This is 
top-level.




-- 
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