From b8e4afc36031aea93cbacbf986fba4b0e94ad126 Mon Sep 17 00:00:00 2001 From: slfan1989 Date: Wed, 31 Dec 2025 16:28:56 +0800 Subject: [PATCH] fix: typos in _serde.rs and catalog.rs --- crates/catalog/glue/src/catalog.rs | 2 -- crates/catalog/hms/src/catalog.rs | 1 - crates/iceberg/src/spec/schema/_serde.rs | 4 ++-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/catalog/glue/src/catalog.rs b/crates/catalog/glue/src/catalog.rs index 37a7996f80..493a2ca65c 100644 --- a/crates/catalog/glue/src/catalog.rs +++ b/crates/catalog/glue/src/catalog.rs @@ -395,7 +395,6 @@ impl Catalog for GlueCatalog { /// representation and then attempts to update the corresponding namespace /// in the Glue Catalog. /// - /// # Returns /// Returns `Ok(())` if the namespace update is successful. If the /// namespace cannot be updated due to missing information or an error /// during the update process, an `Err(...)` is returned. @@ -723,7 +722,6 @@ impl Catalog for GlueCatalog { /// Glue-compatible table representation, and attempts to create the /// corresponding table in the Glue Catalog. /// - /// # Returns /// Returns `Ok(Table)` if the table is successfully registered and loaded. /// If the registration fails due to validation issues, existing table conflicts, /// metadata problems, or errors during the registration or loading process, diff --git a/crates/catalog/hms/src/catalog.rs b/crates/catalog/hms/src/catalog.rs index b7d192210b..62777d7118 100644 --- a/crates/catalog/hms/src/catalog.rs +++ b/crates/catalog/hms/src/catalog.rs @@ -332,7 +332,6 @@ impl Catalog for HmsCatalog { /// representation and then attempts to update the corresponding namespace /// in the Hive Metastore. /// - /// # Returns /// Returns `Ok(())` if the namespace update is successful. If the /// namespace cannot be updated due to missing information or an error /// during the update process, an `Err(...)` is returned. diff --git a/crates/iceberg/src/spec/schema/_serde.rs b/crates/iceberg/src/spec/schema/_serde.rs index 4b0011835a..b96ce692b3 100644 --- a/crates/iceberg/src/spec/schema/_serde.rs +++ b/crates/iceberg/src/spec/schema/_serde.rs @@ -32,7 +32,7 @@ use crate::{Error, Result}; #[derive(Debug, Serialize, Deserialize, PartialEq, Eq)] #[serde(untagged)] -/// Enum for Schema serialization/deserializaion +/// Enum for Schema serialization/deserialization pub(super) enum SchemaEnum { V2(SchemaV2), V1(SchemaV1), @@ -61,7 +61,7 @@ pub(crate) struct SchemaV1 { pub fields: StructType, } -/// Helper to serialize/deserializa Schema +/// Helper to serialize/deserialize Schema impl TryFrom for Schema { type Error = Error; fn try_from(value: SchemaEnum) -> Result {