spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burak Yavuz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-21588) SQLContext.getConf(key, null) should return null, but it throws NPE
Date Thu, 03 Aug 2017 21:23:00 GMT

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

Burak Yavuz commented on SPARK-21588:
-------------------------------------

that's what I was proposing. `null` seemed more familiar than `<undefined>` before I
looked at the code. 

> 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
>            Priority: Minor
>
> 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
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message