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
create the internal row once
  • Loading branch information
Ngone51 committed Jun 18, 2020
commit 4db64012b78c0734fdbc588b06525f6558f7809c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ case class ScalaUDF(
if (enc.isSerializedAsStructForTopLevel) {
row: Any => fromRow(row.asInstanceOf[InternalRow])
} else {
value: Any => fromRow(new GenericInternalRow(Array(value)))
val inputRow = new GenericInternalRow(1)
value: Any => inputRow.update(0, value); fromRow(inputRow)
}
}
}
Expand Down