viirya commented on a change in pull request #32059:
URL: https://github.com/apache/spark/pull/32059#discussion_r608305174
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/SchemaPruning.scala
##########
@@ -48,7 +49,8 @@ object SchemaPruning {
* right, recursively. That is, left is a "subschema" of right, ignoring
order of
* fields.
*/
- private def sortLeftFieldsByRight(left: DataType, right: DataType): DataType
=
+ private def sortLeftFieldsByRight(left: DataType, right: DataType): DataType
= {
Review comment:
It is. As like
https://github.com/apache/spark/pull/32059#discussion_r608277894, at
`selectField` we treat `GetStructField` and `GetArrayStructFields` differently.
So it causes different behavior in case-sensitive aware resolution here.
It looks like we should better correct them together..
--
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]