Skip to content

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

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

fix(gcs): Fix GCS host property#2965
xanderbailey wants to merge 1 commit 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 renames the property from gcs.service.path to gcs.service.host to match.

Java
py-iceberg

  • Closes #.

What changes are included in this PR?

Are these changes tested?

AI Disclosure

@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
/// 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.11.0", note = "use GCS_SERVICE_HOST instead")]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I prefer to remove it directly.

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.

Have removed altogether

@xanderbailey
xanderbailey force-pushed the xb/fix-gcs-service-host branch from 7775da5 to 403f5f2 Compare August 11, 2026 10:40
Rename the GCS endpoint property from `gcs.service.path` to
`gcs.service.host` to match the Iceberg Java and PyIceberg
implementations. The old key never existed in those implementations, so
endpoints vended by a REST catalog or copied from another engine were
silently ignored.
@xanderbailey
xanderbailey force-pushed the xb/fix-gcs-service-host branch from 403f5f2 to 0e8050b Compare August 11, 2026 10:41
@xanderbailey
xanderbailey requested a review from blackmwk August 11, 2026 10:43
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.

3 participants