diff --git a/src/io/parquet/read/binary/dictionary.rs b/src/io/parquet/read/binary/dictionary.rs index 3a8ce73eaf2..b32616069fc 100644 --- a/src/io/parquet/read/binary/dictionary.rs +++ b/src/io/parquet/read/binary/dictionary.rs @@ -152,7 +152,7 @@ where )? } - if offsets.len() == 0 { + if offsets.is_empty() { // the array is empty and thus we need to push the first offset ourselves. offsets.push(O::zero()); }; diff --git a/src/io/parquet/read/mod.rs b/src/io/parquet/read/mod.rs index d3855847d72..02c4b434186 100644 --- a/src/io/parquet/read/mod.rs +++ b/src/io/parquet/read/mod.rs @@ -206,7 +206,7 @@ pub fn page_iter_to_array< Binary | Utf8 => binary::iter_to_array::(iter, metadata, &data_type), LargeBinary | LargeUtf8 => binary::iter_to_array::(iter, metadata, &data_type), - FixedSizeBinary(size) => Ok(Box::new(fixed_size_binary::iter_to_array( + FixedSizeBinary(_) => Ok(Box::new(fixed_size_binary::iter_to_array( iter, data_type, metadata, )?)), @@ -320,7 +320,7 @@ pub async fn page_stream_to_array { binary::stream_to_array::(pages, metadata, &data_type).await } - FixedSizeBinary(size) => Ok(Box::new( + FixedSizeBinary(_) => Ok(Box::new( fixed_size_binary::stream_to_array(pages, data_type, metadata).await?, )), other => Err(ArrowError::NotYetImplemented(format!(