Revision 098aaec304a6b4c94a364f08c2d8ef18009689d8 authored by vinodkc on 06 August 2017, 06:04:39 UTC, committed by gatorsmile on 06 August 2017, 06:04:52 UTC
## What changes were proposed in this pull request?

In SQLContext.get(key,null) for a key that is not defined in the conf, and doesn't have a default value defined, throws a NPE. Int happens only when conf has a value converter

Added null check on defaultValue inside SQLConf.getConfString to avoid calling entry.valueConverter(defaultValue)

## How was this patch tested?
Added unit test

Author: vinodkc <vinod.kc.in@gmail.com>

Closes #18852 from vinodkc/br_Fix_SPARK-21588.

(cherry picked from commit 1ba967b25e6d88be2db7a4e100ac3ead03a2ade9)
Signed-off-by: gatorsmile <gatorsmile@gmail.com>
1 parent 841bc2f
History

README.md

back to top