gengliangwang commented on code in PR #47813:
URL: https://github.com/apache/spark/pull/47813#discussion_r1723983477
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala:
##########
@@ -57,6 +57,11 @@ trait CheckAnalysis extends PredicateHelper with
LookupCatalog with QueryErrorsB
val DATA_TYPE_MISMATCH_ERROR = TreeNodeTag[Unit]("dataTypeMismatchError")
val INVALID_FORMAT_ERROR = TreeNodeTag[Unit]("invalidFormatError")
+ // Error that has a lower priority, that are not supposed to throw
immediately on triggering,
+ // e.g. certain internal errors. These errors will be thrown at the end of
the whole check
+ // analysis process, if no other error occurs.
+ var preemptedError: Option[SparkException] = None
Review Comment:
Shall we make this a priority queue? If there are more such errors,
developers can set the priorities.
--
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]