Skip to content

Commit 2d44ffd

Browse files
committed
removedTimeVars -> hardcodingTimeVars
1 parent 1b7d636 commit 2d44ffd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,15 @@ private[spark] object HiveUtils extends Logging {
237237
}
238238

239239
// The following configurations were removed by HIVE-12164(Hive 2.0)
240-
val removedTimeVars = Seq(
240+
val hardcodingTimeVars = Seq(
241241
("hive.stats.jdbc.timeout", "30s") -> TimeUnit.SECONDS,
242242
("hive.stats.retries.wait", "3000ms") -> TimeUnit.MILLISECONDS
243243
).map { case ((key, defaultValue), unit) =>
244244
val value = hadoopConf.get(key, defaultValue)
245245
key -> HiveConf.toTime(value, unit, unit).toString
246246
}
247247

248-
(commonTimeVars ++ removedTimeVars).toMap
248+
(commonTimeVars ++ hardcodingTimeVars).toMap
249249
}
250250

251251
/**

0 commit comments

Comments
 (0)