zhztheplayer commented on code in PR #51183:
URL: https://github.com/apache/spark/pull/51183#discussion_r2150668829


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/Columnar.scala:
##########
@@ -66,9 +65,6 @@ trait ColumnarToRowTransition extends UnaryExecNode
  * [[MapPartitionsInRWithArrowExec]]. Eventually this should replace those 
implementations.
  */
 case class ColumnarToRowExec(child: SparkPlan) extends ColumnarToRowTransition 
with CodegenSupport {
-  // supportsColumnar requires to be only called on driver side, see also 
SPARK-37779.
-  assert(Utils.isInRunningSparkTask || child.supportsColumnar)

Review Comment:
   Hi @dongjoon-hyun, I feel the change needs to be clarified a bit :)
   
   The previous code was:
   
   ```scala
   assert(Utils.isInRunningSparkTask || child.supportsColumnar)
   ```
   
   The proposed change is to skip the `child.supportsColumnar` assertion from 
the driver side, so the whole assertion will actually become:
   
   ```scala
   assert(Utils.isInRunningSparkTask || true)
   ```
   
   then become:
   
   ```scala
   assert(true)
   ```
   
   Hence, I needed to completely remove the assertion.
   
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to