SuccessChanges

Summary

  1. [SPARK-23706][PYTHON] spark.conf.get(value, default=None) should produce (commit: 80e79430ff33dca9a3641bf0a882d79b343a3f25) (details)
Commit 80e79430ff33dca9a3641bf0a882d79b343a3f25 by hyukjinkwon
[SPARK-23706][PYTHON] spark.conf.get(value, default=None) should produce
None in PySpark
Scala:
``` scala> spark.conf.get("hey", null) res1: String = null
```
``` scala> spark.conf.get("spark.sql.sources.partitionOverwriteMode",
null) res2: String = null
```
Python:
**Before**
```
>>> spark.conf.get("hey", None)
... py4j.protocol.Py4JJavaError: An error occurred while calling
o30.get.
: java.util.NoSuchElementException: hey
...
```
```
>>> spark.conf.get("spark.sql.sources.partitionOverwriteMode", None)
u'STATIC'
```
**After**
```
>>> spark.conf.get("hey", None) is None True
```
```
>>> spark.conf.get("spark.sql.sources.partitionOverwriteMode", None) is
None True
```
*Note that this PR preserves the case below:
```
>>> spark.conf.get("spark.sql.sources.partitionOverwriteMode") u'STATIC'
```
Manually tested and unit tests were added.
Author: hyukjinkwon <gurwls223@gmail.com>
Closes #20841 from HyukjinKwon/spark-conf-get.
(cherry picked from commit 61487b308b0169e3108c2ad31674a0c80b8ac5f3)
Signed-off-by: hyukjinkwon <gurwls223@gmail.com>
(commit: 80e79430ff33dca9a3641bf0a882d79b343a3f25)
The file was modifiedpython/pyspark/sql/conf.py (diff)
The file was modifiedpython/pyspark/sql/tests.py (diff)
The file was modifiedpython/pyspark/sql/context.py (diff)