Skip to content

Commit 32dfb87

Browse files
committed
[SPARK-11500][SQL] Use sortBy instead of sortWith.
1 parent 4f47063 commit 32dfb87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetRelation.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ private[sql] class ParquetRelation(
398398
val leaves = currentLeafStatuses.filter { f =>
399399
isSummaryFile(f.getPath) ||
400400
!(f.getPath.getName.startsWith("_") || f.getPath.getName.startsWith("."))
401-
}.toArray.sortWith(_.getPath.toString < _.getPath.toString)
401+
}.toArray.sortBy(_.getPath.toString)
402402

403403
dataStatuses = leaves.filterNot(f => isSummaryFile(f.getPath))
404404
metadataStatuses =

0 commit comments

Comments
 (0)