aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/sql/session.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyspark/sql/session.py')
-rw-r--r--python/pyspark/sql/session.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/python/pyspark/sql/session.py b/python/pyspark/sql/session.py
index c2452613ba..35c36b4935 100644
--- a/python/pyspark/sql/session.py
+++ b/python/pyspark/sql/session.py
@@ -134,35 +134,6 @@ class SparkSession(object):
self._conf = RuntimeConfig(self._jsparkSession.conf())
return self._conf
- @since(2.0)
- def setConf(self, key, value):
- """
- Sets the given Spark SQL configuration property.
- """
- self._jsparkSession.setConf(key, value)
-
- @ignore_unicode_prefix
- @since(2.0)
- def getConf(self, key, defaultValue=None):
- """Returns the value of Spark SQL configuration property for the given key.
-
- If the key is not set and defaultValue is not None, return
- defaultValue. If the key is not set and defaultValue is None, return
- the system default value.
-
- >>> spark.getConf("spark.sql.shuffle.partitions")
- u'200'
- >>> spark.getConf("spark.sql.shuffle.partitions", "10")
- u'10'
- >>> spark.setConf("spark.sql.shuffle.partitions", "50")
- >>> spark.getConf("spark.sql.shuffle.partitions", "10")
- u'50'
- """
- if defaultValue is not None:
- return self._jsparkSession.getConf(key, defaultValue)
- else:
- return self._jsparkSession.getConf(key)
-
@property
@since(2.0)
def catalog(self):