Skip to content

Commit 1353531

Browse files
committed
fix: clippy warnings
1 parent aafe1e2 commit 1353531

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

datafusion/core/src/datasource/physical_plan/arrow_file.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ impl FileOpener for ArrowOpener {
311311
{
312312
decoder.read_dictionary(
313313
dict_block,
314+
#[allow(deprecated)]
314315
&Buffer::from_bytes(dict_result.into()),
315316
)?;
316317
}
@@ -350,6 +351,7 @@ impl FileOpener for ArrowOpener {
350351
decoder
351352
.read_record_batch(
352353
&block,
354+
#[allow(deprecated)]
353355
&Buffer::from_bytes(data.into()),
354356
)
355357
.transpose()

datafusion/optimizer/src/unwrap_cast_in_comparison.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ use crate::optimizer::ApplyOrder;
2525
use crate::{OptimizerConfig, OptimizerRule};
2626

2727
use crate::utils::NamePreserver;
28+
#[allow(deprecated)]
2829
use arrow::datatypes::{
2930
DataType, TimeUnit, MAX_DECIMAL_FOR_EACH_PRECISION, MIN_DECIMAL_FOR_EACH_PRECISION,
3031
};
@@ -369,7 +370,9 @@ fn try_cast_numeric_literal(
369370
// Different precision for decimal128 can store different range of value.
370371
// For example, the precision is 3, the max of value is `999` and the min
371372
// value is `-999`
373+
#[allow(deprecated)]
372374
MIN_DECIMAL_FOR_EACH_PRECISION[*precision as usize - 1],
375+
#[allow(deprecated)]
373376
MAX_DECIMAL_FOR_EACH_PRECISION[*precision as usize - 1],
374377
),
375378
_ => return None,

0 commit comments

Comments
 (0)