cloud-fan commented on code in PR #36881:
URL: https://github.com/apache/spark/pull/36881#discussion_r903236179
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala:
##########
@@ -53,7 +53,7 @@ trait V2WriteCommand extends UnaryCommand {
val outType =
CharVarcharUtils.getRawType(outAttr.metadata).getOrElse(outAttr.dataType)
// names and types must match, nullability must be compatible
inAttr.name == outAttr.name &&
Review Comment:
It's actually more complicated than it looks. We have a rule
`ResolveOutputRelation` to do the by-name resolution for top-level columns.
Case sensitivity is not the only inconsistency between top-level columns and
inner fields. We should update `ResolveOutputRelation` to take care of inner
fields as well.
--
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]