You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/12/03 18:17:06 UTC
[GitHub] [spark] cloud-fan commented on a change in pull request #26734:
[SPARK-30099][SQL] Improve Analyzed Logical Plan
cloud-fan commented on a change in pull request #26734: [SPARK-30099][SQL] Improve Analyzed Logical Plan
URL: https://github.com/apache/spark/pull/26734#discussion_r353342979
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala
##########
@@ -155,14 +155,15 @@ class QueryExecution(
append("== Parsed Logical Plan ==\n")
QueryPlan.append(logical, append, verbose, addSuffix, maxFields)
append("\n== Analyzed Logical Plan ==\n")
- val analyzedOutput = try {
- truncatedString(
- analyzed.output.map(o => s"${o.name}: ${o.dataType.simpleString}"), ", ", maxFields)
+ try {
+ append(
+ truncatedString(
+ analyzed.output.map(o => s"${o.name}: ${o.dataType.simpleString}"), ", ", maxFields)
+ )
+ append("\n")
} catch {
- case e: AnalysisException => e.toString
+ case _: AnalysisException =>
Review comment:
shall we put something to indicate that the output is unknown because plan is not resolved?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org