Skip to content

Commit d6de8cb

Browse files
committed
SPARK-23927: num.zero instead of 0
1 parent 140225d commit d6de8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,7 @@ object Sequence {
26512651
require(
26522652
(step > num.zero && start <= stop)
26532653
|| (step < num.zero && start >= stop)
2654-
|| (step == 0 && start == stop),
2654+
|| (step == num.zero && start == stop),
26552655
s"Illegal sequence boundaries: $start to $stop by $step")
26562656

26572657
val len = if (start == stop) 1L else 1L + (stop.toLong - start.toLong) / step.toLong

0 commit comments

Comments
 (0)