[ https://issues.apache.org/jira/browse/SPARK-46561?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yang Jie resolved SPARK-46561. ------------------------------ Resolution: Won't Fix > Use `exists` instead of `filter + nonEmpty` to get `showResourceColumn` in > `MasterPage.scala` > --------------------------------------------------------------------------------------------- > > Key: SPARK-46561 > URL: https://issues.apache.org/jira/browse/SPARK-46561 > Project: Spark > Issue Type: Improvement > Components: Spark Core, Web UI > Affects Versions: 4.0.0 > Reporter: Yang Jie > Priority: Minor > Labels: pull-request-available > > {code:java} > def render(request: HttpServletRequest): Seq[Node] = { > val state = getMasterState > val showResourceColumn = > state.workers.filter(_.resourcesInfoUsed.nonEmpty).nonEmpty{code} > we can use `exists` instead of > `workers.filter(_.resourcesInfoUsed.nonEmpty).nonEmpty` -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org