Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/12488#discussion_r60180069
--- Diff: python/pyspark/sql/context.py ---
@@ -147,12 +147,24 @@ def setConf(self, key, value):
self._ssql_ctx.setConf(key, value)
@since(1.3)
- def getConf(self, key, defaultValue):
+ def getConf(self, key, defaultValue=None):
"""Returns the value of Spark SQL configuration property for the
given key.
- If the key is not set, returns defaultValue.
+ If the key is not set, returns defaultValue, if set, otherwise,
return the
--- End diff --
Maybe
```
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.
```
---
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]