Skip to content

Commit c25a1a9

Browse files
committed
style: fmt
1 parent 367ee13 commit c25a1a9

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

crates/iceberg/benches/table_scan_plan_files.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,11 @@ use futures_util::StreamExt;
2020
use tokio::runtime::Runtime;
2121

2222
mod utils;
23-
use utils::build_catalog;
24-
2523
use iceberg::expr::Reference;
2624
use iceberg::spec::Datum;
2725
use iceberg::table::Table;
2826
use iceberg::Catalog;
27+
use utils::build_catalog;
2928

3029
async fn setup_async() -> Table {
3130
let catalog = build_catalog().await;
@@ -82,20 +81,21 @@ async fn all_files_some_rows(table: &Table) {
8281
}
8382

8483
async fn one_file_some_rows(table: &Table) {
85-
let scan = table
86-
.scan()
87-
.with_filter(
88-
Reference::new("tpep_pickup_datetime")
89-
.greater_than_or_equal_to(
90-
Datum::timestamptz_from_str("2024-02-01T00:00:00.000 UTC").unwrap(),
91-
)
92-
.and(Reference::new("tpep_pickup_datetime").less_than(
93-
Datum::timestamptz_from_str("2024-02-02T00:00:00.000 UTC").unwrap(),
94-
))
95-
.and(Reference::new("passenger_count").equal_to(Datum::double(1.0))),
96-
)
97-
.build()
98-
.unwrap();
84+
let scan =
85+
table
86+
.scan()
87+
.with_filter(
88+
Reference::new("tpep_pickup_datetime")
89+
.greater_than_or_equal_to(
90+
Datum::timestamptz_from_str("2024-02-01T00:00:00.000 UTC").unwrap(),
91+
)
92+
.and(Reference::new("tpep_pickup_datetime").less_than(
93+
Datum::timestamptz_from_str("2024-02-02T00:00:00.000 UTC").unwrap(),
94+
))
95+
.and(Reference::new("passenger_count").equal_to(Datum::double(1.0))),
96+
)
97+
.build()
98+
.unwrap();
9999
let mut stream = scan.plan_files().await.unwrap();
100100

101101
while let Some(item) = stream.next().await {

crates/iceberg/benches/utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
use std::collections::HashMap;
19+
1820
use iceberg::io::{S3_ACCESS_KEY_ID, S3_ENDPOINT, S3_REGION, S3_SECRET_ACCESS_KEY};
1921
use iceberg_catalog_rest::{RestCatalog, RestCatalogConfig};
2022
use iceberg_test_utils::docker::DockerCompose;
21-
use std::collections::HashMap;
2223

2324
pub fn get_docker_compose() -> DockerCompose {
2425
DockerCompose::new(

crates/iceberg/tests/read_performance_test.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
//! Performance tests for FileIO S3 table scans
1919
20+
use std::collections::HashMap;
21+
use std::process::Command;
22+
use std::sync::RwLock;
23+
2024
use ctor::{ctor, dtor};
2125
use futures_util::stream::TryStreamExt;
2226
use iceberg::io::{
@@ -26,9 +30,6 @@ use iceberg::Catalog;
2630
use iceberg_catalog_rest::{RestCatalog, RestCatalogConfig};
2731
use iceberg_test_utils::docker::DockerCompose;
2832
use iceberg_test_utils::{normalize_test_name, set_up};
29-
use std::collections::HashMap;
30-
use std::process::Command;
31-
use std::sync::RwLock;
3233

3334
static DOCKER_COMPOSE_ENV: RwLock<Option<DockerCompose>> = RwLock::new(None);
3435

0 commit comments

Comments
 (0)