Skip to content

Commit

Permalink
Update ArrowEvalPythonUDTFExec.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
AngersZhuuuu committed Jun 21, 2024
1 parent 4fecae0 commit 8a08719
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ case class ArrowEvalPythonUDTFExec(
val actualDataTypes = (0 until flattenedBatch.numCols()).map(
i => flattenedBatch.column(i).dataType())
val arrowOutputTypes = outputTypes.map(ArrowUtils.toArrowOutputSchema)
assert(arrowOutputTypes == actualDataTypes, "Invalid schema from arrow-enabled Python UDTF: " +
assert(arrowOutputTypes == actualDataTypes,
"Invalid schema from arrow-enabled Python UDTF: " +
s"expected ${outputTypes.mkString(", ")}, got ${actualDataTypes.mkString(", ")}")

flattenedBatch.setNumRows(batch.numRows())
Expand Down

0 comments on commit 8a08719

Please sign in to comment.