Skip to content

Commit 6eec97d

Browse files
committed
Update comments, fix style
1 parent 014d7e1 commit 6eec97d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sql/core/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,13 +971,13 @@ object StaticSQLConf {
971971
}
972972

973973
val DEFAULT_WAREHOUSE_PATH = buildConf("spark.sql.default.warehouse.dir")
974-
.doc("The default location for managed databases and tables. " +
975-
"Used if spark.sql.warehouse.dir is not set")
974+
.doc("Default location used for managed databases and tables " +
975+
"if spark.sql.warehouse.dir is not set")
976976
.stringConf
977977
.createWithDefault(Utils.resolveURI("spark-warehouse").toString)
978978

979979
val WAREHOUSE_PATH = buildConf("spark.sql.warehouse.dir")
980-
.doc("The location for managed databases and tables.")
980+
.doc("The default location for managed databases and tables.")
981981
.stringConf
982982
.createOptional
983983

sql/core/src/main/scala/org/apache/spark/sql/internal/SharedState.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private[sql] class SharedState(val sparkContext: SparkContext) extends Logging {
5656
s"hive.metastore.warehouse.dir ('$hiveWarehouseDir').")
5757
hiveWarehouseDir
5858
} else if (sparkContext.conf.contains(WAREHOUSE_PATH.key) &&
59-
sparkContext.conf.get(WAREHOUSE_PATH).isDefined) {
59+
sparkContext.conf.get(WAREHOUSE_PATH).isDefined) {
6060
// If spark.sql.warehouse.dir is set, we will override hive.metastore.warehouse.dir using
6161
// the value of spark.sql.warehouse.dir.
6262
val sparkWarehouseDir = sparkContext.conf.get(WAREHOUSE_PATH).get

0 commit comments

Comments
 (0)