ueshin commented on code in PR #50201:
URL: https://github.com/apache/spark/pull/50201#discussion_r1984423181


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/objects.scala:
##########
@@ -252,8 +253,10 @@ case class MapPartitionsInRWithArrowExec(
       val outputProject = UnsafeProjection.create(output, output)
       columnarBatchIter.flatMap { batch =>
         val actualDataTypes = (0 until batch.numCols()).map(i => 
batch.column(i).dataType())
-        assert(outputTypes == actualDataTypes, "Invalid schema from dapply(): 
" +
-          s"expected ${outputTypes.mkString(", ")}, got 
${actualDataTypes.mkString(", ")}")
+        if (outputTypes == actualDataTypes) {

Review Comment:
   It's opposite? should be ` != `?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to