Skip to content

Commit 477944f

Browse files
committed
fmt
1 parent af8ac35 commit 477944f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

datafusion/datasource/src/file_scan_config.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@
2020
2121
use crate::file_groups::FileGroup;
2222
use crate::{
23-
PartitionedFile, display::FileGroupsDisplay, file::FileSource,
23+
PartitionedFile,
24+
display::FileGroupsDisplay,
25+
file::FileSource,
2426
file_compression_type::FileCompressionType,
2527
file_stream::{
2628
FileStreamBuilder, SharedFileStreamState, shared_file_stream_state_for,
2729
},
28-
source::DataSource, statistics::MinMaxStatistics,
30+
source::DataSource,
31+
statistics::MinMaxStatistics,
2932
};
3033
use arrow::datatypes::FieldRef;
3134
use arrow::datatypes::{DataType, Schema, SchemaRef};
@@ -2520,7 +2523,10 @@ mod tests {
25202523

25212524
// expect that reset_state clears the configuration
25222525
let reset_exec = exec.reset_state().unwrap();
2523-
let reset_exec = reset_exec.as_any().downcast_ref::<DataSourceExec>().unwrap();
2526+
let reset_exec = reset_exec
2527+
.as_any()
2528+
.downcast_ref::<DataSourceExec>()
2529+
.unwrap();
25242530
let reset_config = reset_exec
25252531
.data_source()
25262532
.as_any()

datafusion/datasource/src/source.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ pub struct DataSourceExec {
274274
/// This helper is called whenever a new `DataSourceExec` is constructed or
275275
/// rebuilt so runtime-only shared scheduler state does not leak across plan
276276
/// recreations such as [`ExecutionPlan::reset_state`].
277-
fn attach_shared_file_stream_state(data_source: Arc<dyn DataSource>) -> Arc<dyn DataSource> {
277+
fn attach_shared_file_stream_state(
278+
data_source: Arc<dyn DataSource>,
279+
) -> Arc<dyn DataSource> {
278280
if let Some(config) = data_source.as_any().downcast_ref::<FileScanConfig>() {
279281
data_source
280282
.with_new_state(Arc::new(shared_file_stream_state_for(config)))

0 commit comments

Comments
 (0)