Skip to content
Prev Previous commit
Next Next commit
Use Option.
  • Loading branch information
dongjoon-hyun committed Jan 23, 2017
commit 528b0fd1bd8a685f14d708d1a47570924835e569
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ case class SetCommand(kv: Option[(String, Option[String])]) extends RunnableComm
val runFunc = (sparkSession: SparkSession) => {
sparkSession.sessionState.conf.getAllDefinedConfs.sorted.map {
case (key, defaultValue, doc) =>
Row(key, if (defaultValue == null) "<undefined>" else defaultValue, doc)
Row(key, Option(defaultValue).getOrElse("<undefined>"), doc)
}
}
val schema = StructType(
Expand Down