Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
maropu committed Nov 30, 2018
commit df07fc48adb525eb9d330b078e6a66fb0597bb24
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,10 @@ object InternalRow {
case DecimalType.Fixed(precision, _) =>
(input, v) => input.setDecimal(ordinal, v.asInstanceOf[Decimal], precision)
case CalendarIntervalType | BinaryType | _: ArrayType | StringType | _: StructType |
_: MapType | _: ObjectType | _: UserDefinedType[_] =>
_: MapType | _: ObjectType =>
(input, v) => input.update(ordinal, v)
case NullType => (input, v) => {}
case udt: UserDefinedType[_] => getWriter(ordinal, udt.sqlType)
case NullType => (input, _) => input.setNullAt(ordinal)
case _ => throw new SparkException(s"Unsupported data type $dt")
}
}