Skip to content

Commit

Permalink
Inspectors are not serializable.
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Jul 27, 2014
1 parent ef8d42b commit fed3634
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -251,8 +251,10 @@ private[hive] case class HiveGenericUdtf(
@transient
protected lazy val function: GenericUDTF = createFunction()

@transient
protected lazy val inputInspectors = children.map(_.dataType).map(toInspector)

@transient
protected lazy val outputInspectors = {
val structInspector = function.initialize(inputInspectors.toArray)
structInspector.getAllStructFieldRefs.map(_.getFieldObjectInspector)
Expand Down

0 comments on commit fed3634

Please sign in to comment.