HeartSaVioR commented on a change in pull request #25913: 
[WIP][SPARK-29221][SQL] LocalTableScanExec: handle the case where executors are 
accessing "null" rows
URL: https://github.com/apache/spark/pull/25913#discussion_r327635481
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/LocalTableScanExec.scala
 ##########
 @@ -37,7 +37,7 @@ case class LocalTableScanExec(
     "numOutputRows" -> SQLMetrics.createMetric(sparkContext, "number of output 
rows"))
 
   @transient private lazy val unsafeRows: Array[InternalRow] = {
-    if (rows.isEmpty) {
+    if (rows == null || rows.isEmpty) {
 
 Review comment:
   Related commits are here:
   
https://github.com/apache/spark/commit/256358f66a975aa62eb81378e4e073fc2d15644b
   
https://github.com/apache/spark/commit/f70f46d1e5bc503e9071707d837df618b7696d32

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to