dtenedor commented on code in PR #36445:
URL: https://github.com/apache/spark/pull/36445#discussion_r872649340
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -1552,7 +1553,8 @@ class Analyzer(override val catalogManager:
CatalogManager)
private def resolveMergeExprOrFail(e: Expression, p: LogicalPlan):
Expression = {
val resolved = resolveExpressionByPlanChildren(e, p)
- resolved.references.filter(!_.resolved).foreach { a =>
+ resolved.references.filter { attribute: Attribute =>
+ !attribute.resolved && attribute.name != CURRENT_DEFAULT_COLUMN_NAME
}.foreach { a =>
Review Comment:
Good question. The `ResolveDefaultColumns` analysis rule exclusively handles
this case. I added a comment here and a new unit test case.
--
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]