[ 
https://issues.apache.org/jira/browse/SPARK-21588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17350898#comment-17350898
 ] 

Apache Spark commented on SPARK-21588:
--------------------------------------

User 'vinodkc' has created a pull request for this issue:
https://github.com/apache/spark/pull/18852

> SQLContext.getConf(key, null) should return null, but it throws NPE
> -------------------------------------------------------------------
>
>                 Key: SPARK-21588
>                 URL: https://issues.apache.org/jira/browse/SPARK-21588
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Burak Yavuz
>            Assignee: Vinod KC
>            Priority: Minor
>             Fix For: 2.1.2, 2.2.1, 2.3.0
>
>
> SQLContext.get(key) for a key that is not defined in the conf, and doesn't 
> have a default value defined, throws a NoSuchElementException. In order to 
> avoid that, I used a null as the default value, which threw a NPE instead. If 
> it is null, it shouldn't try to parse the default value in `getConfString`



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to