Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/1791#discussion_r15916708
--- Diff: python/pyspark/context.py ---
@@ -260,6 +260,17 @@ def defaultMinPartitions(self):
"""
return self._jsc.sc().defaultMinPartitions()
+ @property
+ def isLocal(self):
+ """
+ Whether the context run locally
+ """
+ return self._jsc.isLocal()
+
+ @property
+ def conf(self):
--- End diff --
This needs a docstring. Also, the Scala equivalent of this clones the
SparkConf because it cannot be changed at runtime. We might want to do the
same thing here (to guard against misuse); I'm not sure how clone() interacts
with Py4J objects; do we need to implement a custom clone method for objects
with Py4J objects as fields that calls those objects' JVM clone methods?
---
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]