From f15b3690f6370563e014af4628b7897afa49a799 Mon Sep 17 00:00:00 2001 From: zhouzilong <529620861@qq.com> Date: Tue, 27 Feb 2024 11:55:44 -0500 Subject: [PATCH] rename crates to libs --- crates/examples/Cargo.toml | 37 ---------- crates/examples/README.md | 21 ------ crates/examples/src/rest_catalog_namespace.rs | 53 --------------- crates/examples/src/rest_catalog_table.rs | 68 ------------------- {crates => libs}/iceberg/Cargo.toml | 0 .../iceberg/DEPENDENCIES.rust.tsv | 0 {crates => libs}/iceberg/src/avro/mod.rs | 0 {crates => libs}/iceberg/src/avro/schema.rs | 0 {crates => libs}/iceberg/src/catalog/mod.rs | 0 {crates => libs}/iceberg/src/error.rs | 0 {crates => libs}/iceberg/src/expr/mod.rs | 0 .../iceberg/src/expr/predicate.rs | 0 {crates => libs}/iceberg/src/expr/term.rs | 0 {crates => libs}/iceberg/src/io.rs | 0 {crates => libs}/iceberg/src/lib.rs | 0 {crates => libs}/iceberg/src/scan.rs | 0 .../iceberg/src/spec/datatypes.rs | 0 {crates => libs}/iceberg/src/spec/manifest.rs | 0 .../iceberg/src/spec/manifest_list.rs | 0 {crates => libs}/iceberg/src/spec/mod.rs | 0 .../iceberg/src/spec/partition.rs | 0 {crates => libs}/iceberg/src/spec/schema.rs | 0 {crates => libs}/iceberg/src/spec/snapshot.rs | 0 {crates => libs}/iceberg/src/spec/sort.rs | 0 .../iceberg/src/spec/table_metadata.rs | 0 .../iceberg/src/spec/transform.rs | 0 {crates => libs}/iceberg/src/spec/values.rs | 0 {crates => libs}/iceberg/src/table.rs | 0 {crates => libs}/iceberg/src/transaction.rs | 0 .../iceberg/src/transform/bucket.rs | 0 .../iceberg/src/transform/identity.rs | 0 {crates => libs}/iceberg/src/transform/mod.rs | 0 .../iceberg/src/transform/temporal.rs | 0 .../iceberg/src/transform/truncate.rs | 0 .../iceberg/src/transform/void.rs | 0 .../iceberg/src/writer/file_writer/mod.rs | 0 {crates => libs}/iceberg/src/writer/mod.rs | 0 .../testdata/avro_schema_manifest_entry.json | 0 .../avro_schema_manifest_file_v1.json | 0 .../avro_schema_manifest_file_v2.json | 0 .../testdata/example_table_metadata_v2.json | 0 .../TableMetadataUnsupportedVersion.json | 0 .../table_metadata/TableMetadataV1Valid.json | 0 .../TableMetadataV2CurrentSchemaNotFound.json | 0 ...TableMetadataV2MissingLastPartitionId.json | 0 .../TableMetadataV2MissingPartitionSpecs.json | 0 .../TableMetadataV2MissingSchemas.json | 0 .../TableMetadataV2MissingSortOrder.json | 0 .../table_metadata/TableMetadataV2Valid.json | 0 .../TableMetadataV2ValidMinimal.json | 0 50 files changed, 179 deletions(-) delete mode 100644 crates/examples/Cargo.toml delete mode 100644 crates/examples/README.md delete mode 100644 crates/examples/src/rest_catalog_namespace.rs delete mode 100644 crates/examples/src/rest_catalog_table.rs rename {crates => libs}/iceberg/Cargo.toml (100%) rename {crates => libs}/iceberg/DEPENDENCIES.rust.tsv (100%) rename {crates => libs}/iceberg/src/avro/mod.rs (100%) rename {crates => libs}/iceberg/src/avro/schema.rs (100%) rename {crates => libs}/iceberg/src/catalog/mod.rs (100%) rename {crates => libs}/iceberg/src/error.rs (100%) rename {crates => libs}/iceberg/src/expr/mod.rs (100%) rename {crates => libs}/iceberg/src/expr/predicate.rs (100%) rename {crates => libs}/iceberg/src/expr/term.rs (100%) rename {crates => libs}/iceberg/src/io.rs (100%) rename {crates => libs}/iceberg/src/lib.rs (100%) rename {crates => libs}/iceberg/src/scan.rs (100%) rename {crates => libs}/iceberg/src/spec/datatypes.rs (100%) rename {crates => libs}/iceberg/src/spec/manifest.rs (100%) rename {crates => libs}/iceberg/src/spec/manifest_list.rs (100%) rename {crates => libs}/iceberg/src/spec/mod.rs (100%) rename {crates => libs}/iceberg/src/spec/partition.rs (100%) rename {crates => libs}/iceberg/src/spec/schema.rs (100%) rename {crates => libs}/iceberg/src/spec/snapshot.rs (100%) rename {crates => libs}/iceberg/src/spec/sort.rs (100%) rename {crates => libs}/iceberg/src/spec/table_metadata.rs (100%) rename {crates => libs}/iceberg/src/spec/transform.rs (100%) rename {crates => libs}/iceberg/src/spec/values.rs (100%) rename {crates => libs}/iceberg/src/table.rs (100%) rename {crates => libs}/iceberg/src/transaction.rs (100%) rename {crates => libs}/iceberg/src/transform/bucket.rs (100%) rename {crates => libs}/iceberg/src/transform/identity.rs (100%) rename {crates => libs}/iceberg/src/transform/mod.rs (100%) rename {crates => libs}/iceberg/src/transform/temporal.rs (100%) rename {crates => libs}/iceberg/src/transform/truncate.rs (100%) rename {crates => libs}/iceberg/src/transform/void.rs (100%) rename {crates => libs}/iceberg/src/writer/file_writer/mod.rs (100%) rename {crates => libs}/iceberg/src/writer/mod.rs (100%) rename {crates => libs}/iceberg/testdata/avro_schema_manifest_entry.json (100%) rename {crates => libs}/iceberg/testdata/avro_schema_manifest_file_v1.json (100%) rename {crates => libs}/iceberg/testdata/avro_schema_manifest_file_v2.json (100%) rename {crates => libs}/iceberg/testdata/example_table_metadata_v2.json (100%) rename {crates => libs}/iceberg/testdata/table_metadata/TableMetadataUnsupportedVersion.json (100%) rename {crates => libs}/iceberg/testdata/table_metadata/TableMetadataV1Valid.json (100%) rename {crates => libs}/iceberg/testdata/table_metadata/TableMetadataV2CurrentSchemaNotFound.json (100%) rename {crates => libs}/iceberg/testdata/table_metadata/TableMetadataV2MissingLastPartitionId.json (100%) rename {crates => libs}/iceberg/testdata/table_metadata/TableMetadataV2MissingPartitionSpecs.json (100%) rename {crates => libs}/iceberg/testdata/table_metadata/TableMetadataV2MissingSchemas.json (100%) rename {crates => libs}/iceberg/testdata/table_metadata/TableMetadataV2MissingSortOrder.json (100%) rename {crates => libs}/iceberg/testdata/table_metadata/TableMetadataV2Valid.json (100%) rename {crates => libs}/iceberg/testdata/table_metadata/TableMetadataV2ValidMinimal.json (100%) diff --git a/crates/examples/Cargo.toml b/crates/examples/Cargo.toml deleted file mode 100644 index 57596c2..0000000 --- a/crates/examples/Cargo.toml +++ /dev/null @@ -1,37 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -[package] -name = "iceberg-examples" -version = { workspace = true } -edition = { workspace = true } -repository = { workspace = true } -license = { workspace = true } -rust-version = { workspace = true } - -[dependencies] -iceberg = { workspace = true } -iceberg-catalog-rest = { workspace = true } -tokio = { version = "1", features = ["full"] } - -[[example]] -name = "rest-catalog-namespace" -path = "src/rest_catalog_namespace.rs" - -[[example]] -name = "rest-catalog-table" -path = "src/rest_catalog_table.rs" diff --git a/crates/examples/README.md b/crates/examples/README.md deleted file mode 100644 index 335d2ea..0000000 --- a/crates/examples/README.md +++ /dev/null @@ -1,21 +0,0 @@ - - -Example usage codes for `iceberg-rust`. Currently, these examples can't run directly since it requires setting up of -environments for catalogs, for example, rest catalog server. \ No newline at end of file diff --git a/crates/examples/src/rest_catalog_namespace.rs b/crates/examples/src/rest_catalog_namespace.rs deleted file mode 100644 index 0a3b00b..0000000 --- a/crates/examples/src/rest_catalog_namespace.rs +++ /dev/null @@ -1,53 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -use iceberg::{Catalog, NamespaceIdent}; -use iceberg_catalog_rest::{RestCatalog, RestCatalogConfig}; -use std::collections::HashMap; - -#[tokio::main] -async fn main() { - // ANCHOR: create_catalog - // Create catalog - let config = RestCatalogConfig::builder() - .uri("http://localhost:8080".to_string()) - .build(); - - let catalog = RestCatalog::new(config).await.unwrap(); - // ANCHOR_END: create_catalog - - // ANCHOR: list_all_namespace - // List all namespaces - let all_namespaces = catalog.list_namespaces(None).await.unwrap(); - println!("Namespaces in current catalog: {:?}", all_namespaces); - // ANCHOR_END: list_all_namespace - - // ANCHOR: create_namespace - let namespace_id = - NamespaceIdent::from_vec(vec!["ns1".to_string(), "ns11".to_string()]).unwrap(); - // Create namespace - let ns = catalog - .create_namespace( - &namespace_id, - HashMap::from([("key1".to_string(), "value1".to_string())]), - ) - .await - .unwrap(); - - println!("Namespace created: {:?}", ns); - // ANCHOR_END: create_namespace -} diff --git a/crates/examples/src/rest_catalog_table.rs b/crates/examples/src/rest_catalog_table.rs deleted file mode 100644 index 9fb3dd7..0000000 --- a/crates/examples/src/rest_catalog_table.rs +++ /dev/null @@ -1,68 +0,0 @@ -// Licensed to the Apache Software Foundation (ASF) under one -// or more contributor license agreements. See the NOTICE file -// distributed with this work for additional information -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -use iceberg::spec::{NestedField, PrimitiveType, Schema, Type}; -use iceberg::{Catalog, TableCreation, TableIdent}; -use iceberg_catalog_rest::{RestCatalog, RestCatalogConfig}; -use std::collections::HashMap; - -#[tokio::main] -async fn main() { - // Create catalog - let config = RestCatalogConfig::builder() - .uri("http://localhost:8080".to_string()) - .build(); - - let catalog = RestCatalog::new(config).await.unwrap(); - - // ANCHOR: create_table - let table_id = TableIdent::from_strs(["default", "t1"]).unwrap(); - - let table_schema = Schema::builder() - .with_fields(vec![ - NestedField::optional(1, "foo", Type::Primitive(PrimitiveType::String)).into(), - NestedField::required(2, "bar", Type::Primitive(PrimitiveType::Int)).into(), - NestedField::optional(3, "baz", Type::Primitive(PrimitiveType::Boolean)).into(), - ]) - .with_schema_id(1) - .with_identifier_field_ids(vec![2]) - .build() - .unwrap(); - - // Create table - let table_creation = TableCreation::builder() - .name(table_id.name.clone()) - .schema(table_schema.clone()) - .properties(HashMap::from([("owner".to_string(), "testx".to_string())])) - .build(); - - let table = catalog - .create_table(&table_id.namespace, table_creation) - .await - .unwrap(); - - println!("Table created: {:?}", table.metadata()); - // ANCHOR_END: create_table - - // ANCHOR: load_table - let table2 = catalog - .load_table(&TableIdent::from_strs(["default", "t2"]).unwrap()) - .await - .unwrap(); - println!("{:?}", table2.metadata()); - // ANCHOR_END: load_table -} diff --git a/crates/iceberg/Cargo.toml b/libs/iceberg/Cargo.toml similarity index 100% rename from crates/iceberg/Cargo.toml rename to libs/iceberg/Cargo.toml diff --git a/crates/iceberg/DEPENDENCIES.rust.tsv b/libs/iceberg/DEPENDENCIES.rust.tsv similarity index 100% rename from crates/iceberg/DEPENDENCIES.rust.tsv rename to libs/iceberg/DEPENDENCIES.rust.tsv diff --git a/crates/iceberg/src/avro/mod.rs b/libs/iceberg/src/avro/mod.rs similarity index 100% rename from crates/iceberg/src/avro/mod.rs rename to libs/iceberg/src/avro/mod.rs diff --git a/crates/iceberg/src/avro/schema.rs b/libs/iceberg/src/avro/schema.rs similarity index 100% rename from crates/iceberg/src/avro/schema.rs rename to libs/iceberg/src/avro/schema.rs diff --git a/crates/iceberg/src/catalog/mod.rs b/libs/iceberg/src/catalog/mod.rs similarity index 100% rename from crates/iceberg/src/catalog/mod.rs rename to libs/iceberg/src/catalog/mod.rs diff --git a/crates/iceberg/src/error.rs b/libs/iceberg/src/error.rs similarity index 100% rename from crates/iceberg/src/error.rs rename to libs/iceberg/src/error.rs diff --git a/crates/iceberg/src/expr/mod.rs b/libs/iceberg/src/expr/mod.rs similarity index 100% rename from crates/iceberg/src/expr/mod.rs rename to libs/iceberg/src/expr/mod.rs diff --git a/crates/iceberg/src/expr/predicate.rs b/libs/iceberg/src/expr/predicate.rs similarity index 100% rename from crates/iceberg/src/expr/predicate.rs rename to libs/iceberg/src/expr/predicate.rs diff --git a/crates/iceberg/src/expr/term.rs b/libs/iceberg/src/expr/term.rs similarity index 100% rename from crates/iceberg/src/expr/term.rs rename to libs/iceberg/src/expr/term.rs diff --git a/crates/iceberg/src/io.rs b/libs/iceberg/src/io.rs similarity index 100% rename from crates/iceberg/src/io.rs rename to libs/iceberg/src/io.rs diff --git a/crates/iceberg/src/lib.rs b/libs/iceberg/src/lib.rs similarity index 100% rename from crates/iceberg/src/lib.rs rename to libs/iceberg/src/lib.rs diff --git a/crates/iceberg/src/scan.rs b/libs/iceberg/src/scan.rs similarity index 100% rename from crates/iceberg/src/scan.rs rename to libs/iceberg/src/scan.rs diff --git a/crates/iceberg/src/spec/datatypes.rs b/libs/iceberg/src/spec/datatypes.rs similarity index 100% rename from crates/iceberg/src/spec/datatypes.rs rename to libs/iceberg/src/spec/datatypes.rs diff --git a/crates/iceberg/src/spec/manifest.rs b/libs/iceberg/src/spec/manifest.rs similarity index 100% rename from crates/iceberg/src/spec/manifest.rs rename to libs/iceberg/src/spec/manifest.rs diff --git a/crates/iceberg/src/spec/manifest_list.rs b/libs/iceberg/src/spec/manifest_list.rs similarity index 100% rename from crates/iceberg/src/spec/manifest_list.rs rename to libs/iceberg/src/spec/manifest_list.rs diff --git a/crates/iceberg/src/spec/mod.rs b/libs/iceberg/src/spec/mod.rs similarity index 100% rename from crates/iceberg/src/spec/mod.rs rename to libs/iceberg/src/spec/mod.rs diff --git a/crates/iceberg/src/spec/partition.rs b/libs/iceberg/src/spec/partition.rs similarity index 100% rename from crates/iceberg/src/spec/partition.rs rename to libs/iceberg/src/spec/partition.rs diff --git a/crates/iceberg/src/spec/schema.rs b/libs/iceberg/src/spec/schema.rs similarity index 100% rename from crates/iceberg/src/spec/schema.rs rename to libs/iceberg/src/spec/schema.rs diff --git a/crates/iceberg/src/spec/snapshot.rs b/libs/iceberg/src/spec/snapshot.rs similarity index 100% rename from crates/iceberg/src/spec/snapshot.rs rename to libs/iceberg/src/spec/snapshot.rs diff --git a/crates/iceberg/src/spec/sort.rs b/libs/iceberg/src/spec/sort.rs similarity index 100% rename from crates/iceberg/src/spec/sort.rs rename to libs/iceberg/src/spec/sort.rs diff --git a/crates/iceberg/src/spec/table_metadata.rs b/libs/iceberg/src/spec/table_metadata.rs similarity index 100% rename from crates/iceberg/src/spec/table_metadata.rs rename to libs/iceberg/src/spec/table_metadata.rs diff --git a/crates/iceberg/src/spec/transform.rs b/libs/iceberg/src/spec/transform.rs similarity index 100% rename from crates/iceberg/src/spec/transform.rs rename to libs/iceberg/src/spec/transform.rs diff --git a/crates/iceberg/src/spec/values.rs b/libs/iceberg/src/spec/values.rs similarity index 100% rename from crates/iceberg/src/spec/values.rs rename to libs/iceberg/src/spec/values.rs diff --git a/crates/iceberg/src/table.rs b/libs/iceberg/src/table.rs similarity index 100% rename from crates/iceberg/src/table.rs rename to libs/iceberg/src/table.rs diff --git a/crates/iceberg/src/transaction.rs b/libs/iceberg/src/transaction.rs similarity index 100% rename from crates/iceberg/src/transaction.rs rename to libs/iceberg/src/transaction.rs diff --git a/crates/iceberg/src/transform/bucket.rs b/libs/iceberg/src/transform/bucket.rs similarity index 100% rename from crates/iceberg/src/transform/bucket.rs rename to libs/iceberg/src/transform/bucket.rs diff --git a/crates/iceberg/src/transform/identity.rs b/libs/iceberg/src/transform/identity.rs similarity index 100% rename from crates/iceberg/src/transform/identity.rs rename to libs/iceberg/src/transform/identity.rs diff --git a/crates/iceberg/src/transform/mod.rs b/libs/iceberg/src/transform/mod.rs similarity index 100% rename from crates/iceberg/src/transform/mod.rs rename to libs/iceberg/src/transform/mod.rs diff --git a/crates/iceberg/src/transform/temporal.rs b/libs/iceberg/src/transform/temporal.rs similarity index 100% rename from crates/iceberg/src/transform/temporal.rs rename to libs/iceberg/src/transform/temporal.rs diff --git a/crates/iceberg/src/transform/truncate.rs b/libs/iceberg/src/transform/truncate.rs similarity index 100% rename from crates/iceberg/src/transform/truncate.rs rename to libs/iceberg/src/transform/truncate.rs diff --git a/crates/iceberg/src/transform/void.rs b/libs/iceberg/src/transform/void.rs similarity index 100% rename from crates/iceberg/src/transform/void.rs rename to libs/iceberg/src/transform/void.rs diff --git a/crates/iceberg/src/writer/file_writer/mod.rs b/libs/iceberg/src/writer/file_writer/mod.rs similarity index 100% rename from crates/iceberg/src/writer/file_writer/mod.rs rename to libs/iceberg/src/writer/file_writer/mod.rs diff --git a/crates/iceberg/src/writer/mod.rs b/libs/iceberg/src/writer/mod.rs similarity index 100% rename from crates/iceberg/src/writer/mod.rs rename to libs/iceberg/src/writer/mod.rs diff --git a/crates/iceberg/testdata/avro_schema_manifest_entry.json b/libs/iceberg/testdata/avro_schema_manifest_entry.json similarity index 100% rename from crates/iceberg/testdata/avro_schema_manifest_entry.json rename to libs/iceberg/testdata/avro_schema_manifest_entry.json diff --git a/crates/iceberg/testdata/avro_schema_manifest_file_v1.json b/libs/iceberg/testdata/avro_schema_manifest_file_v1.json similarity index 100% rename from crates/iceberg/testdata/avro_schema_manifest_file_v1.json rename to libs/iceberg/testdata/avro_schema_manifest_file_v1.json diff --git a/crates/iceberg/testdata/avro_schema_manifest_file_v2.json b/libs/iceberg/testdata/avro_schema_manifest_file_v2.json similarity index 100% rename from crates/iceberg/testdata/avro_schema_manifest_file_v2.json rename to libs/iceberg/testdata/avro_schema_manifest_file_v2.json diff --git a/crates/iceberg/testdata/example_table_metadata_v2.json b/libs/iceberg/testdata/example_table_metadata_v2.json similarity index 100% rename from crates/iceberg/testdata/example_table_metadata_v2.json rename to libs/iceberg/testdata/example_table_metadata_v2.json diff --git a/crates/iceberg/testdata/table_metadata/TableMetadataUnsupportedVersion.json b/libs/iceberg/testdata/table_metadata/TableMetadataUnsupportedVersion.json similarity index 100% rename from crates/iceberg/testdata/table_metadata/TableMetadataUnsupportedVersion.json rename to libs/iceberg/testdata/table_metadata/TableMetadataUnsupportedVersion.json diff --git a/crates/iceberg/testdata/table_metadata/TableMetadataV1Valid.json b/libs/iceberg/testdata/table_metadata/TableMetadataV1Valid.json similarity index 100% rename from crates/iceberg/testdata/table_metadata/TableMetadataV1Valid.json rename to libs/iceberg/testdata/table_metadata/TableMetadataV1Valid.json diff --git a/crates/iceberg/testdata/table_metadata/TableMetadataV2CurrentSchemaNotFound.json b/libs/iceberg/testdata/table_metadata/TableMetadataV2CurrentSchemaNotFound.json similarity index 100% rename from crates/iceberg/testdata/table_metadata/TableMetadataV2CurrentSchemaNotFound.json rename to libs/iceberg/testdata/table_metadata/TableMetadataV2CurrentSchemaNotFound.json diff --git a/crates/iceberg/testdata/table_metadata/TableMetadataV2MissingLastPartitionId.json b/libs/iceberg/testdata/table_metadata/TableMetadataV2MissingLastPartitionId.json similarity index 100% rename from crates/iceberg/testdata/table_metadata/TableMetadataV2MissingLastPartitionId.json rename to libs/iceberg/testdata/table_metadata/TableMetadataV2MissingLastPartitionId.json diff --git a/crates/iceberg/testdata/table_metadata/TableMetadataV2MissingPartitionSpecs.json b/libs/iceberg/testdata/table_metadata/TableMetadataV2MissingPartitionSpecs.json similarity index 100% rename from crates/iceberg/testdata/table_metadata/TableMetadataV2MissingPartitionSpecs.json rename to libs/iceberg/testdata/table_metadata/TableMetadataV2MissingPartitionSpecs.json diff --git a/crates/iceberg/testdata/table_metadata/TableMetadataV2MissingSchemas.json b/libs/iceberg/testdata/table_metadata/TableMetadataV2MissingSchemas.json similarity index 100% rename from crates/iceberg/testdata/table_metadata/TableMetadataV2MissingSchemas.json rename to libs/iceberg/testdata/table_metadata/TableMetadataV2MissingSchemas.json diff --git a/crates/iceberg/testdata/table_metadata/TableMetadataV2MissingSortOrder.json b/libs/iceberg/testdata/table_metadata/TableMetadataV2MissingSortOrder.json similarity index 100% rename from crates/iceberg/testdata/table_metadata/TableMetadataV2MissingSortOrder.json rename to libs/iceberg/testdata/table_metadata/TableMetadataV2MissingSortOrder.json diff --git a/crates/iceberg/testdata/table_metadata/TableMetadataV2Valid.json b/libs/iceberg/testdata/table_metadata/TableMetadataV2Valid.json similarity index 100% rename from crates/iceberg/testdata/table_metadata/TableMetadataV2Valid.json rename to libs/iceberg/testdata/table_metadata/TableMetadataV2Valid.json diff --git a/crates/iceberg/testdata/table_metadata/TableMetadataV2ValidMinimal.json b/libs/iceberg/testdata/table_metadata/TableMetadataV2ValidMinimal.json similarity index 100% rename from crates/iceberg/testdata/table_metadata/TableMetadataV2ValidMinimal.json rename to libs/iceberg/testdata/table_metadata/TableMetadataV2ValidMinimal.json