Skip to content

Commit

Permalink
Allow from_* functions
Browse files Browse the repository at this point in the history
Can drop this after rebase on commit 5f16f92 "fix clippy errors in 1.60 (apache#1527)", first released in 12.0.0
  • Loading branch information
mcheshkov committed Sep 5, 2024
1 parent 163f7a9 commit 4fe9c89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions parquet/src/arrow/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ impl ParquetTypeConverter<'_> {
}
}

#[allow(clippy::wrong_self_convention)]
fn from_int32(&self) -> Result<DataType> {
match (
self.schema.get_basic_info().logical_type(),
Expand Down Expand Up @@ -705,6 +706,7 @@ impl ParquetTypeConverter<'_> {
}
}

#[allow(clippy::wrong_self_convention)]
fn from_int96(&self) -> Result<DataType> {
match (
self.schema.get_basic_info().logical_type(),
Expand Down Expand Up @@ -735,6 +737,7 @@ impl ParquetTypeConverter<'_> {
}
}

#[allow(clippy::wrong_self_convention)]
fn from_int64(&self) -> Result<DataType> {
match (
self.schema.get_basic_info().logical_type(),
Expand Down Expand Up @@ -795,6 +798,7 @@ impl ParquetTypeConverter<'_> {
}
}

#[allow(clippy::wrong_self_convention)]
fn from_fixed_len_byte_array(&self) -> Result<DataType> {
match (
self.schema.get_basic_info().logical_type(),
Expand Down Expand Up @@ -833,6 +837,7 @@ impl ParquetTypeConverter<'_> {
)
}

#[allow(clippy::wrong_self_convention)]
fn from_byte_array(&self) -> Result<DataType> {
match (self.schema.get_basic_info().logical_type(), self.schema.get_basic_info().converted_type()) {
(Some(LogicalType::STRING(_)), _) => Ok(DataType::Utf8),
Expand Down

0 comments on commit 4fe9c89

Please sign in to comment.