Skip to content

Commit d23d155

Browse files
committed
clean code
1 parent 2a7caf7 commit d23d155

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,7 +2636,7 @@ object Sequence {
26362636

26372637
while (t < exclusiveItem ^ stepSign < 0) {
26382638
arr(i) = if (scale == 1) {
2639-
fromLong(t / scale)
2639+
fromLong(t)
26402640
} else {
26412641
fromLong(Math.round(t / scale.toFloat))
26422642
}
@@ -2703,7 +2703,7 @@ object Sequence {
27032703
|
27042704
| while ($t < $exclusiveItem ^ $stepSign < 0) {
27052705
| if (${scale}L == 1L) {
2706-
| $arr[$i] = ($elemType) ($t / ${scale}L);
2706+
| $arr[$i] = ($elemType) $t;
27072707
| } else {
27082708
| $arr[$i] = ($elemType) (Math.round($t / (float)${scale}L));
27092709
| }

0 commit comments

Comments
 (0)