From cda4a0c595af2606e2f4076e9ef81d79d4428f4b Mon Sep 17 00:00:00 2001 From: congyi wang <58715567+wcy-fdu@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:07:36 +0800 Subject: [PATCH] chore: fix typo in FileIO Schemes (#653) * fix typo * fix typo --- crates/iceberg/src/io/file_io.rs | 2 +- crates/iceberg/src/io/storage.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/iceberg/src/io/file_io.rs b/crates/iceberg/src/io/file_io.rs index e0d83a08b..1ac2c1cd5 100644 --- a/crates/iceberg/src/io/file_io.rs +++ b/crates/iceberg/src/io/file_io.rs @@ -40,7 +40,7 @@ use crate::{Error, ErrorKind, Result}; /// | Local file system | `storage-fs` | `file` | /// | Memory | `storage-memory` | `memory` | /// | S3 | `storage-s3` | `s3`, `s3a`| -/// | GCS | `storage-gcs` | `gs` | +/// | GCS | `storage-gcs` | `gcs` | #[derive(Clone, Debug)] pub struct FileIO { inner: Arc, diff --git a/crates/iceberg/src/io/storage.rs b/crates/iceberg/src/io/storage.rs index cd9b54d54..b1f799a84 100644 --- a/crates/iceberg/src/io/storage.rs +++ b/crates/iceberg/src/io/storage.rs @@ -164,7 +164,7 @@ impl Storage { "memory" => Ok(Scheme::Memory), "file" | "" => Ok(Scheme::Fs), "s3" | "s3a" => Ok(Scheme::S3), - "gs" => Ok(Scheme::Gcs), + "gcs" => Ok(Scheme::Gcs), s => Ok(s.parse::()?), } }