Skip to content

Commit

Permalink
SPARK-23927: num.zero instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
wajda committed Jun 26, 2018
1 parent 140225d commit d6de8cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2651,7 +2651,7 @@ object Sequence {
require(
(step > num.zero && start <= stop)
|| (step < num.zero && start >= stop)
|| (step == 0 && start == stop),
|| (step == num.zero && start == stop),
s"Illegal sequence boundaries: $start to $stop by $step")

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

0 comments on commit d6de8cb

Please sign in to comment.