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_r327869273
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/LocalTableScanExec.scala
 ##########
 @@ -59,7 +59,9 @@ case class LocalTableScanExec(
   }
 
   override protected def stringArgs: Iterator[Any] = {
-    if (rows.isEmpty) {
+    if (rows == null) {
+      Iterator("<unknown>", output)
+    } else if (rows.isEmpty) {
 
 Review comment:
   The value except `output` should be meaningless, otherwise assumption in 
related comments goes wrong and we should serialize the rows. I guess that's 
only for visual.

----------------------------------------------------------------
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