Skip to content
Closed
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,14 @@ private[hive] case class HiveGenericUDTF(
}

@transient
protected lazy val inputInspectors = children.map(toInspector)
protected lazy val inputInspectors = {
Comment thread
ulysses-you marked this conversation as resolved.
Outdated
val inspectors = children.map(toInspector)
val fields = inspectors.indices.map(index => s"col$index").asJava

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The field name is not important so use col0 col1 ...

ObjectInspectorFactory.getStandardStructObjectInspector(fields, inspectors.asJava)
}

@transient
protected lazy val outputInspector = function.initialize(inputInspectors.toArray)
protected lazy val outputInspector = function.initialize(inputInspectors)

@transient
protected lazy val udtInput = new Array[AnyRef](children.length)
Expand Down