Skip to content

Commit 25e7166

Browse files
committed
format
1 parent 0ec1c34 commit 25e7166

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

crates/integrations/datafusion/src/table/partitioned.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ impl IcebergPartitionedTableProvider {
4141
schema,
4242
})
4343
}
44-
4544
}
4645

4746
#[async_trait]
@@ -142,12 +141,12 @@ mod tests {
142141
use std::collections::HashMap;
143142
use std::sync::Arc;
144143

144+
use datafusion::prelude::SessionContext;
145145
use iceberg::memory::{MEMORY_CATALOG_WAREHOUSE, MemoryCatalogBuilder};
146146
use iceberg::spec::{
147147
DataContentType, DataFileBuilder, DataFileFormat, NestedField, PrimitiveType, Schema, Type,
148148
};
149149
use iceberg::transaction::{ApplyTransactionAction, Transaction};
150-
use datafusion::prelude::SessionContext;
151150
use iceberg::{Catalog, CatalogBuilder, NamespaceIdent, TableCreation, TableIdent};
152151
use tempfile::TempDir;
153152

@@ -252,7 +251,10 @@ mod tests {
252251
.scan(&SessionContext::new().state(), None, &[], None)
253252
.await
254253
.unwrap();
255-
let scan = plan.as_any().downcast_ref::<IcebergPartitionedScan>().unwrap();
254+
let scan = plan
255+
.as_any()
256+
.downcast_ref::<IcebergPartitionedScan>()
257+
.unwrap();
256258

257259
assert_eq!(scan.tasks().len(), 0);
258260
assert_eq!(scan.properties().partitioning.partition_count(), 0);
@@ -272,7 +274,10 @@ mod tests {
272274
.scan(&SessionContext::new().state(), None, &[], None)
273275
.await
274276
.unwrap();
275-
let scan = plan.as_any().downcast_ref::<IcebergPartitionedScan>().unwrap();
277+
let scan = plan
278+
.as_any()
279+
.downcast_ref::<IcebergPartitionedScan>()
280+
.unwrap();
276281

277282
assert_eq!(scan.tasks().len(), 3);
278283
assert_eq!(scan.properties().partitioning.partition_count(), 3);

0 commit comments

Comments
 (0)