maropu 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_r327868352
##########
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:
Is it ok to return different values in a driver and executors? How about
computing this value in a driver then passing into executors?
----------------------------------------------------------------
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]