Skip to content

fix(gcs): Fix GCS host property - #2965

Open
xanderbailey wants to merge 2 commits into
apache:mainfrom
xanderbailey:xb/fix-gcs-service-host
Open

fix(gcs): Fix GCS host property#2965
xanderbailey wants to merge 2 commits into
apache:mainfrom
xanderbailey:xb/fix-gcs-service-host

Conversation

@xanderbailey

@xanderbailey xanderbailey commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Java and py-icebery both use gcs.service.host as the path to the bucket whereas we're currently using gcs.service.path which makes interop a little difficult between engines and catalogs. This PR deprecates the old gcs.service.path property and prefers the gcs.service.host. When we parse the properties we're falling back to the old one incase consumers were relying on this but I've marked the property as deprecated with the aim of removing it at some point in the future.

Java
py-iceberg

  • Closes #.

What changes are included in this PR?

Are these changes tested?

AI Disclosure

Fixed up #[allow(deprecated)] for me.

@xanderbailey
xanderbailey force-pushed the xb/fix-gcs-service-host branch from 01f5eed to 11e476b Compare August 5, 2026 16:33
Comment on lines 42 to 43
#[deprecated(since = "0.10.1", note = "use GCS_SERVICE_HOST instead")]
pub const GCS_SERVICE_PATH: &str = "gcs.service.path";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we prefer to hard break here and include this in the release docs for the next release, I'm also happy to do that. Wasn't sure what the right thing to do here was.

@xanderbailey

Copy link
Copy Markdown
Contributor Author

cc: @Xuanwo looks like in the original PR you called this our #520 (comment) but it wasn't updated https://github.com/apache/iceberg-rust/pull/520/changes#diff-455ed5286778e4be48bfafeadaad6ae688ac69bdcfc17c34fec15cdbc55b5e25R32. Do you have thoughts on this PR?

@xanderbailey xanderbailey changed the title Fix GCS host property fix(gcs): Fix GCS host property Aug 5, 2026

@anoopj anoopj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change looks good to me, but the PR description says "This PR depreciates the old gcs.service.host property and prefers the gcs.service.path"

I think you meant the opposite. (also typo: should be "deprecates")

/// endpoints vended by a REST catalog or copied from another engine were
/// silently ignored. It is still read as a fallback for backwards
/// compatibility.
#[deprecated(since = "0.10.1", note = "use GCS_SERVICE_HOST instead")]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May need to bump this since this is already out?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, I guess 0.11.0 is more correct?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think so.

@xanderbailey

Copy link
Copy Markdown
Contributor Author

Good catch, thank you!

Comment thread crates/iceberg/src/io/storage/config/gcs.rs Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants