Github user rxin commented on a diff in the pull request: https://github.com/apache/spark/pull/12765#discussion_r61545881 --- Diff: python/pyspark/sql/session.py --- @@ -121,6 +121,19 @@ def newSession(self): """ return self.__class__(self._sc, self._jsparkSession.newSession()) + @property + @since(2.0) + def conf(self): + """Runtime configuration interface for Spark. + + This is the interface through which the user can get and set all Spark and Hadoop + configurations that are relevant to Spark SQL. When getting the value of a config, + this defaults to the value set in the underlying :class:`SparkContext`, if any. + """ + if not hasattr(self, "_conf"): + self._conf = RuntimeConfig(self._jsparkSession.conf()) + return self._conf + @since(2.0) def setConf(self, key, value): --- End diff -- actually i was looking at this. initially runtimeconf has a lot of functions, but now it is pretty simple and no longer have a lot. I'm wondering if we should just remove that ... and have only SparkSession.setConf/getConf
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org