Skip to content

Commit

Permalink
[VL] minor change for fallback log
Browse files Browse the repository at this point in the history
  • Loading branch information
zhli1142015 committed Dec 1, 2023
1 parent 84b5d30 commit 795fc23
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ case class GlutenFallbackReporter(glutenConfig: GlutenConfig, spark: SparkSessio
}

private def logFallbackReason(logLevel: String, nodeName: String, reason: String): Unit = {
logOnLevel(logLevel, s"Validation failed for plan: $nodeName, due to: $reason.")
val executionIdInfo = Option(spark.sparkContext.getLocalProperty(SQLExecution.EXECUTION_ID_KEY))
.map(id => s"[QueryId=$id]")
.getOrElse("")
logOnLevel(logLevel, s"Validation failed for plan: $nodeName$executionIdInfo, due to: $reason.")
}

private def printFallbackReason(plan: SparkPlan): Unit = {
Expand Down

0 comments on commit 795fc23

Please sign in to comment.