Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50251][PYTHON] Add
getSystemProperty
to PySpark SparkContext
### What changes were proposed in this pull request? This PR aims to add `getSystemProperty` to PySpark `SparkContext` like `setSystemProperty` at Apache Spark 4.0.0. https://spark.apache.org/docs/4.0.0-preview2/api/python/reference/api/pyspark.SparkContext.setSystemProperty.html ### Why are the changes needed? Since Apache Spark 0.9.0, `setSystemProperty` has been provided because Python doesn't have JVM's `SystemProperties` concept. This is usefully used like the following. https://github.com/apache/spark/blob/99d27c9701019a0f534cc13c084895a00badee12/python/pyspark/shell.py#L84 This PR aims to add `getSystemProperty` additionally and symmetrically to provide an easier and better experience for both Spark developers and Spark App developers. ### Does this PR introduce _any_ user-facing change? No. This is a new API. ### How was this patch tested? Pass the CIs with newly added doctests. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#48781 from dongjoon-hyun/SPARK-50251. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
- Loading branch information