From 4fe9c899a085288d9459c1c8270fdca38cf12f6d Mon Sep 17 00:00:00 2001 From: Mikhail Cheshkov Date: Tue, 27 Aug 2024 02:58:12 +0300 Subject: [PATCH] Allow from_* functions Can drop this after rebase on commit 5f16f92 "fix clippy errors in 1.60 (#1527)", first released in 12.0.0 --- parquet/src/arrow/schema.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parquet/src/arrow/schema.rs b/parquet/src/arrow/schema.rs index 2033bff90336..d1c54bca0fae 100644 --- a/parquet/src/arrow/schema.rs +++ b/parquet/src/arrow/schema.rs @@ -660,6 +660,7 @@ impl ParquetTypeConverter<'_> { } } + #[allow(clippy::wrong_self_convention)] fn from_int32(&self) -> Result { match ( self.schema.get_basic_info().logical_type(), @@ -705,6 +706,7 @@ impl ParquetTypeConverter<'_> { } } + #[allow(clippy::wrong_self_convention)] fn from_int96(&self) -> Result { match ( self.schema.get_basic_info().logical_type(), @@ -735,6 +737,7 @@ impl ParquetTypeConverter<'_> { } } + #[allow(clippy::wrong_self_convention)] fn from_int64(&self) -> Result { match ( self.schema.get_basic_info().logical_type(), @@ -795,6 +798,7 @@ impl ParquetTypeConverter<'_> { } } + #[allow(clippy::wrong_self_convention)] fn from_fixed_len_byte_array(&self) -> Result { match ( self.schema.get_basic_info().logical_type(), @@ -833,6 +837,7 @@ impl ParquetTypeConverter<'_> { ) } + #[allow(clippy::wrong_self_convention)] fn from_byte_array(&self) -> Result { match (self.schema.get_basic_info().logical_type(), self.schema.get_basic_info().converted_type()) { (Some(LogicalType::STRING(_)), _) => Ok(DataType::Utf8),