viirya commented on a change in pull request #32194:
URL: https://github.com/apache/spark/pull/32194#discussion_r614341325
##########
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:
I should fix this issue in SPARK-34963 recently. `requestedRootFields`
is already resolved with case-sensitivity.
##########
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:
I should already fix this issue in SPARK-34963 recently.
`requestedRootFields` is already resolved with case-sensitivity.
--
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]