aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBurak Yavuz <brkyvz@gmail.com>2017-02-10 12:55:06 +0100
committerHerman van Hovell <hvanhovell@databricks.com>2017-02-10 12:55:06 +0100
commitd5593f7f5794bd0343e783ac4957864fed9d1b38 (patch)
tree8e58d63a0bd9999b5fff871032563215b50b9a2f /docs
parentfd6c3a0b10ce43a56df845ba66d160b77f02e576 (diff)
downloadspark-d5593f7f5794bd0343e783ac4957864fed9d1b38.tar.gz
spark-d5593f7f5794bd0343e783ac4957864fed9d1b38.tar.bz2
spark-d5593f7f5794bd0343e783ac4957864fed9d1b38.zip
[SPARK-19543] from_json fails when the input row is empty
## What changes were proposed in this pull request? Using from_json on a column with an empty string results in: java.util.NoSuchElementException: head of empty list. This is because `parser.parse(input)` may return `Nil` when `input.trim.isEmpty` ## How was this patch tested? Regression test in `JsonExpressionsSuite` Author: Burak Yavuz <brkyvz@gmail.com> Closes #16881 from brkyvz/json-fix.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions