Skip to content
Permalink
Browse files

Fix indent.

  • Loading branch information...
viirya committed Aug 14, 2019
1 parent e7ab3b8 commit 673fba5bc02afc426fa50278b85d5694f262c323
Showing with 5 additions and 5 deletions.
  1. +5 −5 mllib/src/main/scala/org/apache/spark/ml/feature/StringIndexer.scala
@@ -229,11 +229,11 @@ class StringIndexer @Since("1.4.0") (
.collect().toSeq.flatMap(_.toSeq).asInstanceOf[Seq[Seq[String]]]
val labels = ThreadUtils.parmap(allLabels, "sortingStringLabels", 8) { labels =>
val sorted = labels.filter(_ != null).sorted
if (ascending) {
sorted.toArray
} else {
sorted.reverse.toArray
}
if (ascending) {
sorted.toArray
} else {
sorted.reverse.toArray
}
}.toArray
if (needUnpersist) {
dataset.unpersist()

0 comments on commit 673fba5

Please sign in to comment.
You can’t perform that action at this time.