Skip to content

Commit cb5ece7

Browse files
committed
Consistent name
1 parent 8824186 commit cb5ece7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JacksonParser.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,14 +354,14 @@ class JacksonParser(
354354
parser: JsonParser,
355355
dataType: DataType,
356356
nullable: Boolean = true)(f: PartialFunction[JsonToken, Any]): Any = {
357-
val nullParser = makeNullConverter(nullable)
357+
val nullConverter = makeNullConverter(nullable)
358358
parser.getCurrentToken match {
359359
case FIELD_NAME =>
360360
// There are useless FIELD_NAMEs between START_OBJECT and END_OBJECT tokens
361361
parser.nextToken()
362362
parseJsonToken(parser, dataType, nullable)(f)
363363

364-
case null | VALUE_NULL => nullParser.apply(parser)
364+
case null | VALUE_NULL => nullConverter.apply(parser)
365365

366366
case other => f.applyOrElse(other, failedConversion(parser, dataType, nullable))
367367
}
@@ -375,13 +375,13 @@ class JacksonParser(
375375
parser: JsonParser,
376376
dataType: DataType,
377377
nullable: Boolean): PartialFunction[JsonToken, Any] = {
378-
val nullParser = makeNullConverter(nullable)
378+
val nullConverter = makeNullConverter(nullable)
379379

380380
{
381381
case VALUE_STRING if parser.getTextLength < 1 =>
382382
// If conversion is failed, this produces `null` rather than throwing exception.
383383
// This will protect the mismatch of types.
384-
nullParser.apply(parser)
384+
nullConverter.apply(parser)
385385

386386
case token =>
387387
// We cannot parse this token based on the given data type. So, we throw a

0 commit comments

Comments
 (0)