warrenzhu25 commented on a change in pull request #31869:
URL: https://github.com/apache/spark/pull/31869#discussion_r597417040
##########
File path: core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala
##########
@@ -786,9 +786,13 @@ private[spark] object ApiHelper {
stageData.accumulatorUpdates.exists { acc => acc.name != null && acc.value
!= null }
}
- def hasInput(stageData: StageData): Boolean = stageData.inputBytes > 0
+ def hasInput(stageData: StageData): Boolean = {
+ stageData.inputBytes > 0 || stageData.inputRecords > 0
Review comment:
Yes, I think so. Anyway, it's better to determine based on either
conditions as some input source might only have one metrics. I'll try to figure
out why kafka source has such metrics in separate PR.
--
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]