cloud-fan commented on code in PR #42481:
URL: https://github.com/apache/spark/pull/42481#discussion_r1297942642
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala:
##########
@@ -63,7 +63,14 @@ class QueryExecution(
// TODO: Move the planner an optimizer into here from SessionState.
protected def planner = sparkSession.sessionState.planner
- def assertAnalyzed(): Unit = analyzed
+ def assertAnalyzed(): Unit = {
+ try {
+ analyzed
+ } catch {
+ case e: AnalysisException =>
+ SQLExecution.withNewExecutionId(this, Some("analyze"))(throw e)
Review Comment:
The reason is we do eager analysis for dataframe. Can we add some comments
to explain it?
--
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]