Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedld committed Feb 3, 2025
1 parent 7b9263f commit 0e132da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datafusion/core/src/datasource/physical_plan/arrow_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ impl FileOpener for ArrowOpener {
{
decoder.read_dictionary(
dict_block,
#[allow(deprecated)]
&Buffer::from_bytes(dict_result.into()),
)?;
}
Expand Down Expand Up @@ -350,6 +351,7 @@ impl FileOpener for ArrowOpener {
decoder
.read_record_batch(
&block,
#[allow(deprecated)]
&Buffer::from_bytes(data.into()),
)
.transpose()
Expand Down
3 changes: 3 additions & 0 deletions datafusion/optimizer/src/unwrap_cast_in_comparison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use crate::optimizer::ApplyOrder;
use crate::{OptimizerConfig, OptimizerRule};

use crate::utils::NamePreserver;
#[allow(deprecated)]
use arrow::datatypes::{
DataType, TimeUnit, MAX_DECIMAL_FOR_EACH_PRECISION, MIN_DECIMAL_FOR_EACH_PRECISION,
};
Expand Down Expand Up @@ -369,7 +370,9 @@ fn try_cast_numeric_literal(
// Different precision for decimal128 can store different range of value.
// For example, the precision is 3, the max of value is `999` and the min
// value is `-999`
#[allow(deprecated)]
MIN_DECIMAL_FOR_EACH_PRECISION[*precision as usize - 1],
#[allow(deprecated)]
MAX_DECIMAL_FOR_EACH_PRECISION[*precision as usize - 1],
),
_ => return None,
Expand Down

0 comments on commit 0e132da

Please sign in to comment.