Skip to content

Commit c764d0a

Browse files
chenghao-intelmarmbrus
authored andcommitted
[SPARK-4274] [SQL] Fix NPE in printing the details of the query plan
Author: Cheng Hao <hao.cheng@intel.com> Closes #3139 from chenghao-intel/comparison_test and squashes the following commits: f5d7146 [Cheng Hao] avoid exception in printing the codegen enabled
1 parent ce6ed2a commit c764d0a

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)