File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
crates/utils/re_arrow_combinators/src Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -107,15 +107,15 @@ impl Transform for ListToFixedSizeList {
107107 // Check that each list has exactly the expected length (or is null).
108108 let offsets = source. value_offsets ( ) ;
109109 let expected_length = self . value_length as usize ;
110- for i in 0 ..source. len ( ) {
111- if source. is_valid ( i ) {
112- let start = offsets[ i ] as usize ;
113- let end = offsets[ i + 1 ] as usize ;
114- let length = end - start;
115- if length != expected_length {
110+ for list_index in 0 ..source. len ( ) {
111+ if source. is_valid ( list_index ) {
112+ let start = offsets[ list_index ] as usize ;
113+ let end = offsets[ list_index + 1 ] as usize ;
114+ let list_length = end - start;
115+ if list_length != expected_length {
116116 return Err ( Error :: UnexpectedListValueLength {
117117 expected : expected_length,
118- actual : length ,
118+ actual : list_length ,
119119 } ) ;
120120 }
121121 }
You can’t perform that action at this time.
0 commit comments