beliefer commented on code in PR #43259:
URL: https://github.com/apache/spark/pull/43259#discussion_r1349839974
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -1563,6 +1564,17 @@ object SQLConf {
.booleanConf
.createWithDefault(true)
+ val DEFAULT_CACHE_STORAGE_LEVEL =
buildConf("spark.sql.defaultCacheStorageLevel")
+ .doc("The default storage level of `dataset.cache()`,
`catalog.cacheTable()` and " +
+ "sql query `CACHE TABLE t`.")
+ .version("4.0.0")
+ .stringConf
+ .transform(_.toUpperCase(Locale.ROOT))
+ .checkValues(Set("NONE", "DISK_ONLY", "DISK_ONLY_2", "DISK_ONLY_3",
"MEMORY_ONLY",
+ "MEMORY_ONLY_2", "MEMORY_ONLY_SER", "MEMORY_ONLY_SER_2",
"MEMORY_AND_DISK",
+ "MEMORY_AND_DISK_2", "MEMORY_AND_DISK_SER", "MEMORY_AND_DISK_SER_2",
"OFF_HEAP"))
Review Comment:
https://github.com/apache/spark/pull/43278 merged. You can use
`StorageLevelMapper.values.map(_.name)` now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]