aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-05-04 14:26:05 -0700
committerAndrew Or <andrew@databricks.com>2016-05-04 14:26:05 -0700
commit6ae9fc00ed6ef530a9c42c8407fc66fd873239cc (patch)
tree2840f93790368379eb0082cb4d26a084a2780957 /python
parent0fd3a4748416233f034ec137d95f0a4c8712d396 (diff)
downloadspark-6ae9fc00ed6ef530a9c42c8407fc66fd873239cc.tar.gz
spark-6ae9fc00ed6ef530a9c42c8407fc66fd873239cc.tar.bz2
spark-6ae9fc00ed6ef530a9c42c8407fc66fd873239cc.zip
[SPARK-15126][SQL] RuntimeConfig.set should return Unit
## What changes were proposed in this pull request? Currently we return RuntimeConfig itself to facilitate chaining. However, it makes the output in interactive environments (e.g. notebooks, scala repl) weird because it'd show the response of calling set as a RuntimeConfig itself. ## How was this patch tested? Updated unit tests. Author: Reynold Xin <rxin@databricks.com> Closes #12902 from rxin/SPARK-15126.
Diffstat (limited to 'python')
-rw-r--r--python/pyspark/sql/conf.py1
-rw-r--r--python/pyspark/sql/session.py3
2 files changed, 0 insertions, 4 deletions
diff --git a/python/pyspark/sql/conf.py b/python/pyspark/sql/conf.py
index 7428c91991..609d882a95 100644
--- a/python/pyspark/sql/conf.py
+++ b/python/pyspark/sql/conf.py
@@ -23,7 +23,6 @@ class RuntimeConfig(object):
"""User-facing configuration API, accessible through `SparkSession.conf`.
Options set here are automatically propagated to the Hadoop configuration during I/O.
- This a thin wrapper around its Scala implementation org.apache.spark.sql.RuntimeConfig.
"""
def __init__(self, jconf):
diff --git a/python/pyspark/sql/session.py b/python/pyspark/sql/session.py
index fb3e318163..04842f6185 100644
--- a/python/pyspark/sql/session.py
+++ b/python/pyspark/sql/session.py
@@ -71,9 +71,6 @@ class SparkSession(object):
.config("spark.some.config.option", "some-value") \
.getOrCreate()
- :param sparkContext: The :class:`SparkContext` backing this SparkSession.
- :param jsparkSession: An optional JVM Scala SparkSession. If set, we do not instantiate a new
- SparkSession in the JVM, instead we make all calls to this object.
"""
class Builder(object):