We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7caf7 commit d23d155Copy full SHA for d23d155
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala
@@ -2636,7 +2636,7 @@ object Sequence {
2636
2637
while (t < exclusiveItem ^ stepSign < 0) {
2638
arr(i) = if (scale == 1) {
2639
- fromLong(t / scale)
+ fromLong(t)
2640
} else {
2641
fromLong(Math.round(t / scale.toFloat))
2642
}
@@ -2703,7 +2703,7 @@ object Sequence {
2703
|
2704
| while ($t < $exclusiveItem ^ $stepSign < 0) {
2705
| if (${scale}L == 1L) {
2706
- | $arr[$i] = ($elemType) ($t / ${scale}L);
+ | $arr[$i] = ($elemType) $t;
2707
| } else {
2708
| $arr[$i] = ($elemType) (Math.round($t / (float)${scale}L));
2709
| }
0 commit comments