This is an automated email from the ASF dual-hosted git repository.

laskoviymishka pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-go.git


The following commit(s) were added to refs/heads/main by this push:
     new 77c0f63a feat(io): register oss scheme for aliyun oss S3-compatible 
storage (#1074)
77c0f63a is described below

commit 77c0f63a030e318012e339f7472463a63d5173fb
Author: Lei Zhang <[email protected]>
AuthorDate: Wed May 13 15:01:12 2026 +0800

    feat(io): register oss scheme for aliyun oss S3-compatible storage (#1074)
---
 io/gocloud/register.go | 1 +
 io/registry_test.go    | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/io/gocloud/register.go b/io/gocloud/register.go
index 1d8307a3..399ef166 100644
--- a/io/gocloud/register.go
+++ b/io/gocloud/register.go
@@ -43,6 +43,7 @@ func registerS3Schemes() {
        icebergio.Register("s3", s3Factory)
        icebergio.Register("s3a", s3Factory)
        icebergio.Register("s3n", s3Factory)
+       icebergio.Register("oss", s3Factory)
 }
 
 // registerGCSScheme registers the Google Cloud Storage scheme (gs).
diff --git a/io/registry_test.go b/io/registry_test.go
index bb257daa..dda9aebe 100644
--- a/io/registry_test.go
+++ b/io/registry_test.go
@@ -43,6 +43,7 @@ func TestIORegistry(t *testing.T) {
                "abfss",
                "wasb",
                "wasbs",
+               "oss",
        }, io.GetRegisteredSchemes())
 
        customFactoryCalled := false
@@ -67,6 +68,7 @@ func TestIORegistry(t *testing.T) {
                "wasb",
                "wasbs",
                "custom",
+               "oss",
        }, io.GetRegisteredSchemes())
 
        customIO, err := io.LoadFS(ctx, map[string]string{}, 
"custom://bucket/path")
@@ -87,6 +89,7 @@ func TestIORegistry(t *testing.T) {
                "abfss",
                "wasb",
                "wasbs",
+               "oss",
        }, io.GetRegisteredSchemes())
 
        _, err = io.LoadFS(ctx, map[string]string{}, "custom://bucket/path")

Reply via email to