Skip to content

Commit b9dbb9c

Browse files
committed
CR
1 parent c859b60 commit b9dbb9c

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/Dataset.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ class Dataset[T] private[sql](
17291729
// ordering deterministic. Note that MapTypes cannot be sorted and are explicitly pruned out
17301730
// from the sort order.
17311731
val sortOrder = logicalPlan.output
1732-
.filterNot(_.dataType.existsRecursively(dt => dt.isInstanceOf[MapType]))
1732+
.filter(attr => RowOrdering.isOrderable(attr.dataType))
17331733
.map(SortOrder(_, Ascending))
17341734
val plan = if (sortOrder.nonEmpty) {
17351735
Sort(sortOrder, global = false, logicalPlan)

0 commit comments

Comments
 (0)