cloud-fan commented on code in PR #53631:
URL: https://github.com/apache/spark/pull/53631#discussion_r2652889187
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/ResolveDefaultColumnsUtil.scala:
##########
@@ -636,6 +572,22 @@ object ResolveDefaultColumns extends QueryErrorsBase
statement, colName, default.originalSQL)
}
+ if (default.resolved) {
Review Comment:
This switches the check order. It's better to report NOT_A_CONSTANT error,
instead of column not found.
--
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]