tdas commented on a change in pull request #32067:
URL: https://github.com/apache/spark/pull/32067#discussion_r608231453



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
##########
@@ -404,8 +404,17 @@ case class MergeIntoTable(
     mergeCondition: Expression,
     matchedActions: Seq[MergeAction],
     notMatchedActions: Seq[MergeAction]) extends BinaryCommand with 
SupportsSubquery {
+
+  override lazy val resolved: Boolean = {

Review comment:
       this fixes another bug where a merge plan with star and no other 
expressions with unresolved attributes (e.g. all non-optional predicates are 
`literal(true)`), then the resolution will be skipped and the star won't be 
expanded. added test for that.
   




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