aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorSandeep Singh <sandeep@techaddict.me>2016-05-03 18:02:57 -0700
committerAndrew Or <andrew@databricks.com>2016-05-03 18:02:57 -0700
commita8d56f538878443da6eae69449858ad4e2274151 (patch)
treed56164d6ea2511bbfd4704d1691f5ff9ca0d6fde /core
parentc4e0fde876fff259308d1d58ab51ae2697ae31f1 (diff)
downloadspark-a8d56f538878443da6eae69449858ad4e2274151.tar.gz
spark-a8d56f538878443da6eae69449858ad4e2274151.tar.bz2
spark-a8d56f538878443da6eae69449858ad4e2274151.zip
[SPARK-14422][SQL] Improve handling of optional configs in SQLConf
## What changes were proposed in this pull request? Create a new API for handling Optional Configs in SQLConf. Right now `getConf` for `OptionalConfigEntry[T]` returns value of type `T`, if doesn't exist throws an exception. Add new method `getOptionalConf`(suggestions on naming) which will now returns value of type `Option[T]`(so if doesn't exist it returns `None`). ## How was this patch tested? Add test and ran tests locally. Author: Sandeep Singh <sandeep@techaddict.me> Closes #12846 from techaddict/SPARK-14422.
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions