diff --git a/crates/iceberg/src/catalog/mod.rs b/crates/iceberg/src/catalog/mod.rs index 43102adec9..51daa50590 100644 --- a/crates/iceberg/src/catalog/mod.rs +++ b/crates/iceberg/src/catalog/mod.rs @@ -2390,7 +2390,7 @@ mod tests { Table::builder() .metadata(resp) - .metadata_location("s3://bucket/test/location/metadata/00000-8a62c37d-4573-4021-952a-c0baef7d21d0.metadata.json".to_string()) + .metadata_location("s3://bucket/test/location/metadata/00000-8a62c37d-4573-4021-952a-c0baef7d21d0.metadata.json") .identifier(TableIdent::from_strs(["ns1", "test1"]).unwrap()) .file_io(FileIO::new_with_memory()) .build() diff --git a/crates/iceberg/src/spec/table_metadata_builder.rs b/crates/iceberg/src/spec/table_metadata_builder.rs index 65dbae1bfc..5754b5fe06 100644 --- a/crates/iceberg/src/spec/table_metadata_builder.rs +++ b/crates/iceberg/src/spec/table_metadata_builder.rs @@ -2709,7 +2709,7 @@ mod tests { let table = Table::builder() .metadata(resp) - .metadata_location("s3://bucket/test/location/metadata/v1.json".to_string()) + .metadata_location("s3://bucket/test/location/metadata/v1.json") .identifier(TableIdent::from_strs(["ns1", "test1"]).unwrap()) .file_io(FileIO::new_with_memory()) .build() @@ -2740,7 +2740,7 @@ mod tests { let table = Table::builder() .metadata(resp) - .metadata_location("s3://bucket/test/location/metadata/v1.json".to_string()) + .metadata_location("s3://bucket/test/location/metadata/v1.json") .identifier(TableIdent::from_strs(["ns1", "test1"]).unwrap()) .file_io(FileIO::new_with_memory()) .build() diff --git a/crates/iceberg/src/transaction/mod.rs b/crates/iceberg/src/transaction/mod.rs index cb2ff7cf37..ff74e902d1 100644 --- a/crates/iceberg/src/transaction/mod.rs +++ b/crates/iceberg/src/transaction/mod.rs @@ -254,7 +254,7 @@ mod tests { Table::builder() .metadata(resp) - .metadata_location("s3://bucket/test/location/metadata/v1.json".to_string()) + .metadata_location("s3://bucket/test/location/metadata/v1.json") .identifier(TableIdent::from_strs(["ns1", "test1"]).unwrap()) .file_io(FileIO::new_with_memory()) .build() @@ -273,7 +273,7 @@ mod tests { Table::builder() .metadata(resp) - .metadata_location("s3://bucket/test/location/metadata/v1.json".to_string()) + .metadata_location("s3://bucket/test/location/metadata/v1.json") .identifier(TableIdent::from_strs(["ns1", "test1"]).unwrap()) .file_io(FileIO::new_with_memory()) .build() @@ -292,7 +292,7 @@ mod tests { Table::builder() .metadata(resp) - .metadata_location("s3://bucket/test/location/metadata/v1.json".to_string()) + .metadata_location("s3://bucket/test/location/metadata/v1.json") .identifier(TableIdent::from_strs(["ns1", "test1"]).unwrap()) .file_io(FileIO::new_with_memory()) .build() diff --git a/crates/integrations/datafusion/src/physical_plan/project.rs b/crates/integrations/datafusion/src/physical_plan/project.rs index f31bb29dd0..0320d52dd8 100644 --- a/crates/integrations/datafusion/src/physical_plan/project.rs +++ b/crates/integrations/datafusion/src/physical_plan/project.rs @@ -447,7 +447,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "table"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/metadata.json".to_string()) + .metadata_location("/test/metadata.json") .build() .unwrap(); @@ -505,7 +505,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "table"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/metadata.json".to_string()) + .metadata_location("/test/metadata.json") .build() .unwrap(); @@ -577,7 +577,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "table"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/metadata.json".to_string()) + .metadata_location("/test/metadata.json") .build() .unwrap(); diff --git a/crates/integrations/datafusion/src/physical_plan/repartition.rs b/crates/integrations/datafusion/src/physical_plan/repartition.rs index 78063c7309..00552ce9af 100644 --- a/crates/integrations/datafusion/src/physical_plan/repartition.rs +++ b/crates/integrations/datafusion/src/physical_plan/repartition.rs @@ -222,7 +222,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "table"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/metadata.json".to_string()) + .metadata_location("/test/metadata.json") .build() .unwrap() } @@ -379,7 +379,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "bucketed_table"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/bucketed_metadata.json".to_string()) + .metadata_location("/test/bucketed_metadata.json") .build() .unwrap(); @@ -464,7 +464,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "partitioned_bucketed_table"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/partitioned_bucketed_metadata.json".to_string()) + .metadata_location("/test/partitioned_bucketed_metadata.json") .build() .unwrap(); @@ -548,7 +548,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "none_table"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/none_metadata.json".to_string()) + .metadata_location("/test/none_metadata.json") .build() .unwrap(); @@ -620,7 +620,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "range_only_table"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/range_only_metadata.json".to_string()) + .metadata_location("/test/range_only_metadata.json") .build() .unwrap(); @@ -695,7 +695,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "mixed_transforms_table"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/mixed_transforms_metadata.json".to_string()) + .metadata_location("/test/mixed_transforms_metadata.json") .build() .unwrap(); @@ -778,7 +778,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "temporal_partition"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/temporal_metadata.json".to_string()) + .metadata_location("/test/temporal_metadata.json") .build() .unwrap(); @@ -851,7 +851,7 @@ mod tests { .metadata(table_metadata.metadata) .identifier(TableIdent::from_strs(["test", "identity_partition"]).unwrap()) .file_io(FileIO::new_with_fs()) - .metadata_location("/test/identity_metadata.json".to_string()) + .metadata_location("/test/identity_metadata.json") .build() .unwrap();