gengliangwang commented on code in PR #36445:
URL: https://github.com/apache/spark/pull/36445#discussion_r871990905
##########
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:
What if there is an unresolved column "default" which is not default
expression in the query?
--
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]