Skip to content

Commit 7950d8b

Browse files
session to globe
1 parent 53d91c0 commit 7950d8b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

extensions/spark/kyuubi-spark-connector-hive/src/main/scala/org/apache/kyuubi/spark/connector/hive/KyuubiHiveConnectorConf.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ object KyuubiHiveConnectorConf {
6060

6161
val HIVE_FILE_STATUS_CACHE_SCOPE =
6262
buildConf("spark.sql.kyuubi.hive.file.status.cache.scope")
63-
.doc("The scope of hive file status cache, global, session and none.")
63+
.doc("The scope of hive file status cache, globe and none.")
6464
.version("1.11.0")
6565
.stringConf
6666
.transform(policy => policy.toUpperCase(Locale.ROOT))
6767
.checkValue(
68-
policy => Set("SESSION", "NONE").contains(policy),
68+
policy => Set("GLOBE", "NONE").contains(policy),
6969
"Invalid value for 'spark.sql.kyuubi.hive.file.status.cache.scope'." +
70-
"Valid values are 'SESSION', 'NONE'.")
71-
.createWithDefault("SESSION")
70+
"Valid values are 'GLOBE', 'NONE'.")
71+
.createWithDefault("GLOBE")
7272
}

extensions/spark/kyuubi-spark-connector-hive/src/main/scala/org/apache/kyuubi/spark/connector/hive/read/HiveFileStatusCache.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ import org.apache.kyuubi.spark.connector.hive.KyuubiHiveConnectorConf.HIVE_FILE_
3737
* Because the original FileStatusCache cannot take effect (see https://github.com/apache/kyuubi
3838
* /issues/7192).
3939
*
40-
* The main modification point is that at the session level, the cache key is the qualified name
40+
* The main modification point is that at the globally level, the cache key is the qualified name
4141
* of the table (in the form of `catalog.database.table`) + path. The previous key was an
4242
* object + path generated during initialization, and the current scenario is that FileStatusCache
4343
* is not preserved by the outside, resulting in different keys and ineffective caching.
4444
*
45-
* Use [[HiveFileStatusCache.getOrCreate()]] to construct a session/none shared file status cache.
45+
* Use [[HiveFileStatusCache.getOrCreate()]] to construct a globe/none shared file status cache.
4646
*/
4747
object HiveFileStatusCache {
4848
private var sharedCache: HiveSharedInMemoryCache = _
@@ -61,7 +61,7 @@ object HiveFileStatusCache {
6161
session.sessionState.conf.metadataCacheTTL)
6262
}
6363
conf.getConf(HIVE_FILE_STATUS_CACHE_SCOPE) match {
64-
case "SESSION" => sharedCache.createForNewClient(qualifiedName)
64+
case "GLOBE" => sharedCache.createForNewClient(qualifiedName)
6565
case "NONE" => NoopCache
6666
}
6767
} else {

0 commit comments

Comments
 (0)