Skip to content

Commit 50c02d6

Browse files
chenghao-intelmarmbrus
authored andcommitted
[SPARK-4274] [SQL] Fix NPE in printing the details of the query plan
Author: Cheng Hao <[email protected]> Closes #3139 from chenghao-intel/comparison_test and squashes the following commits: f5d7146 [Cheng Hao] avoid exception in printing the codegen enabled (cherry picked from commit c764d0a) Signed-off-by: Michael Armbrust <[email protected]>
1 parent 07ba50f commit 50c02d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
444444
|${stringOrError(optimizedPlan)}
445445
|== Physical Plan ==
446446
|${stringOrError(executedPlan)}
447-
|Code Generation: ${executedPlan.codegenEnabled}
447+
|Code Generation: ${stringOrError(executedPlan.codegenEnabled)}
448448
|== RDD ==
449449
""".stripMargin.trim
450450
}

0 commit comments

Comments
 (0)