-
Notifications
You must be signed in to change notification settings - Fork 29.2k
[SPARK-23706][PYTHON] spark.conf.get(value, default=None) should produce None in PySpark #20841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2504,6 +2504,10 @@ def test_conf(self): | |
| spark.conf.unset("bogo") | ||
| self.assertEqual(spark.conf.get("bogo", "colombia"), "colombia") | ||
|
|
||
| self.assertRaisesRegexp(Exception, "hyukjin", lambda: spark.conf.get("hyukjin")) | ||
| self.assertEqual(spark.conf.get("hyukjin", None), None) | ||
| self.assertEqual(spark.conf.get("spark.sql.sources.partitionOverwriteMode", None), None) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add one more test to get
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure. |
||
|
|
||
| def test_current_database(self): | ||
| spark = self.spark | ||
| spark.catalog._reset() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BryanCutler, so this test case prompted you. It's not related with this PR:
Before
After
Let me take this out.