Skip to content

Commit 6278846

Browse files
committed
Update rows.scala
1 parent cb1852d commit 6278846

File tree

1 file changed

+1
-0
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+1
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/rows.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ class RowOrdering(ordering: Seq[SortOrder]) extends Ordering[Row] {
200200
n.ordering.asInstanceOf[Ordering[Any]].compare(left, right)
201201
case n: NativeType if order.direction == Descending =>
202202
n.ordering.asInstanceOf[Ordering[Any]].reverse.compare(left, right)
203+
case other => sys.error(s"Type $other does not support ordered operations")
203204
}
204205
if (comparison != 0) return comparison
205206
}

0 commit comments

Comments
 (0)