diff options
author | Cheng Hao <hao.cheng@intel.com> | 2014-11-10 17:46:05 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-11-10 17:46:05 -0800 |
commit | c764d0ac1c6410ca2dd2558cb6bcbe8ad5f02481 (patch) | |
tree | e21a7d1b2c1a2ccb0635ea6f033ea87fcac93011 /sql/core/src | |
parent | ce6ed2abd14de26b9ceaa415e9a42fbb1338f5fa (diff) | |
download | spark-c764d0ac1c6410ca2dd2558cb6bcbe8ad5f02481.tar.gz spark-c764d0ac1c6410ca2dd2558cb6bcbe8ad5f02481.tar.bz2 spark-c764d0ac1c6410ca2dd2558cb6bcbe8ad5f02481.zip |
[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
Diffstat (limited to 'sql/core/src')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala index 84eaf401f2..31cc4170aa 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala @@ -444,7 +444,7 @@ class SQLContext(@transient val sparkContext: SparkContext) |${stringOrError(optimizedPlan)} |== Physical Plan == |${stringOrError(executedPlan)} - |Code Generation: ${executedPlan.codegenEnabled} + |Code Generation: ${stringOrError(executedPlan.codegenEnabled)} |== RDD == """.stripMargin.trim } |