Skip to content

Commit 7d95d8c

Browse files
author
Jiayu Liu
committed
fix renaming
1 parent 56fefbc commit 7d95d8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arrow/src/compute/kernels/window.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//! Defines windowing functions, like `shift`ing
1919
2020
use crate::array::{Array, ArrayRef};
21-
use crate::{array::PrimitiveArray, datatypes::ArrowPrimitiveType, error::Result};
21+
use crate::error::Result;
2222
use crate::{
2323
array::{make_array, new_null_array},
2424
compute::concat,
@@ -59,7 +59,7 @@ use num::{abs, clamp};
5959
pub fn shift(array: &Array, offset: i64) -> Result<ArrayRef> {
6060
let value_len = array.len() as i64;
6161
if offset == 0 {
62-
Ok(make_array(values.data_ref().clone()))
62+
Ok(make_array(array.data_ref().clone()))
6363
} else if offset == i64::MIN || abs(offset) >= value_len {
6464
Ok(new_null_array(array.data_type(), array.len()))
6565
} else {

0 commit comments

Comments
 (0)