cloud-fan commented on code in PR #46900:
URL: https://github.com/apache/spark/pull/46900#discussion_r1631566694
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala:
##########
@@ -267,6 +267,7 @@ trait CheckAnalysis extends PredicateHelper with
LookupCatalog with QueryErrorsB
// Early checks for column definitions, to produce better error
messages
ColumnDefinition.checkColumnDefinitions(operator)
+ var checkLowPriorityErrors = () => ()
Review Comment:
how about
```
var stagedError: Option[() => Unit] = None
...
if (stagedError.isEmpty) stagedError = ...
...
if (stagedError.isDefined) stagedError.get.apply()
```
--
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]