Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/17458#discussion_r108528285
--- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala ---
@@ -103,7 +103,7 @@ private[ui] class StagePage(parent: StagesTab) extends
WebUIPage("stage") {
val taskSortColumn = Option(parameterTaskSortColumn).map {
sortColumn =>
UIUtils.decodeURLParameter(sortColumn)
}.getOrElse("Index")
- val taskSortDesc =
Option(parameterTaskSortDesc).map(_.toBoolean).getOrElse(false)
+ val taskSortDesc = Option(parameterTaskSortDesc).exists(_.toBoolean)
--- End diff --
yes, I meant the question is whether .exists is in 2.10, but I am back at a
desktop now and found it is, so no problem. That's not the issue, just, whether
it's clearer
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]