cloud-fan commented on a change in pull request #29389:
URL: https://github.com/apache/spark/pull/29389#discussion_r467682881
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/BroadcastExchangeExec.scala
##########
@@ -126,6 +128,9 @@ case class BroadcastExchangeExec(
val relation = mode.transform(input, Some(numRows))
val dataSize = relation match {
+ case EmptyHashedRelation =>
+ knownRowCount = Some(0L)
Review comment:
See L118. We already know the row count and we even use it to check
`numRows >= MAX_BROADCAST_TABLE_ROWS`
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]