Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/6747#discussion_r32297770
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/SQLConf.scala ---
@@ -304,6 +574,16 @@ private[sql] class SQLConf extends Serializable with
CatalystConf {
*/
def getAllConfs: immutable.Map[String, String] = settings.synchronized {
settings.toMap }
+ /**
+ * Return all the configuration definitions that have been defined in
[[SQLConf]]. Each
+ * definition contains key, defaultValue and doc.
+ */
+ def getAllDefinedConfs: Seq[(String, String, String)] =
sqlConfEntries.synchronized {
+ sqlConfEntries.values.filter(_.isPublic).map { entry =>
+ (entry.key, entry.defaultValueString, entry.doc)
+ }.toSeq
+ }
+
private[spark] def unsetConf(key: String) {
--- End diff --
Adding a `def unsetConf[T](entry: SQLConfEntry[T])` here can be convenient.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]