diff --git a/src/common/src/array/list_array.rs b/src/common/src/array/list_array.rs index d936ffff95c5d..2d68e5eb35f1f 100644 --- a/src/common/src/array/list_array.rs +++ b/src/common/src/array/list_array.rs @@ -604,12 +604,12 @@ impl<'a> ListRef<'a> { let (k, v) = self.array.as_struct().fields().collect_tuple().unwrap(); ( ListRef { - array: &k, + array: k, start: self.start, end: self.end, }, ListRef { - array: &v, + array: v, start: self.start, end: self.end, }, diff --git a/src/expr/impl/src/scalar/array.rs b/src/expr/impl/src/scalar/array.rs index cf7e657b8c025..c23c69cd76f94 100644 --- a/src/expr/impl/src/scalar/array.rs +++ b/src/expr/impl/src/scalar/array.rs @@ -98,9 +98,9 @@ fn map(key: ListRef<'_>, value: ListRef<'_>) -> Result { /// NULL /// ``` #[function("map_access(anymap, any) -> any")] -fn map_access<'a, 'b>( +fn map_access<'a>( map: MapRef<'a>, - key: ScalarRefImpl<'b>, + key: ScalarRefImpl<'_>, ) -> Result>, ExprError> { // FIXME: DatumRef in return value is not support by the macro yet.