dongjoon-hyun commented on code in PR #60008:
URL: https://github.com/apache/spark/pull/60008#discussion_r4444884041
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TableOutputResolver.scala:
##########
@@ -832,9 +832,12 @@ object TableOutputResolver extends SQLConfHelper with
Logging {
matched: Seq[NamedExpression],
conf: SQLConf): Expression = {
genExpr.transform {
- case u: UnresolvedAttribute if u.nameParts.size == 1 =>
+ case u @ UnresolvedAttribute(name +: nestedFields) =>
Review Comment:
Thank you for the review and approval, @peter-toth. Yes, a lambda body has
the same gap, and I reproduced all three of your examples on this head. It
needs a different change, which tracks the arguments of the enclosing lambda
functions as you suggested, so I'd like to keep this PR to struct fields. I'll
file a JIRA issue and open a separate PR for it on top of this one.
--
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]