diff options
author | Jacek Lewandowski <lewandowski.jacek@gmail.com> | 2016-07-14 10:18:31 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-07-14 10:18:31 -0700 |
commit | 31ca741aef9dd138529e064785c8e58b86140ff5 (patch) | |
tree | 27a9ccf9495dad28d7cdb4a5273a418d1afb2d43 /repl/scala-2.11/src/main | |
parent | c576f9fb90853cce2e8e5dcc32a536a0f49cbbd8 (diff) | |
download | spark-31ca741aef9dd138529e064785c8e58b86140ff5.tar.gz spark-31ca741aef9dd138529e064785c8e58b86140ff5.tar.bz2 spark-31ca741aef9dd138529e064785c8e58b86140ff5.zip |
[SPARK-16528][SQL] Fix NPE problem in HiveClientImpl
## What changes were proposed in this pull request?
There are some calls to methods or fields (getParameters, properties) which are then passed to Java/Scala collection converters. Unfortunately those fields can be null in some cases and then the conversions throws NPE. We fix it by wrapping calls to those fields and methods with option and then do the conversion.
## How was this patch tested?
Manually tested with a custom Hive metastore.
Author: Jacek Lewandowski <lewandowski.jacek@gmail.com>
Closes #14200 from jacek-lewandowski/SPARK-16528.
Diffstat (limited to 'repl/scala-2.11/src/main')
0 files changed, 0 insertions, 0 deletions