Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: DH-18149: Simplified passing s3 instructions for iceberg writing #6668

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

malhotrashivam
Copy link
Contributor

@malhotrashivam malhotrashivam commented Feb 27, 2025

JIRA ticket: https://deephaven.atlassian.net/browse/DH-18149

Description:
Previously, users had to provide the S3 configuration (username, password, region, etc.) in two places:

  • When creating the catalog handle.
  • When creating a writer instance to append data to Iceberg tables.

With this PR, if the S3 configuration is not passed when constructing the table writer, it will automatically inherit the configuration from the catalog properties. This change aligns with the existing pattern used for reading iceberg tables.

@malhotrashivam malhotrashivam added feature request New feature or request DocumentationNeeded ReleaseNotesNeeded Release notes are needed labels Feb 27, 2025
@malhotrashivam malhotrashivam added this to the 0.38.0 milestone Feb 27, 2025
@malhotrashivam malhotrashivam self-assigned this Feb 27, 2025
@NotNull final DataInstructionsProviderLoader dataInstructionsProvider) {
super(tableAdapter, instructions, dataInstructionsProvider);
@NotNull final DataInstructionsProviderLoader dataInstructionsProvider,
@NotNull final String tableLocationUriScheme) {
Copy link
Member

Choose a reason for hiding this comment

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

This is technically a breaking change. One of the reasons why I don't like exposing this as a public interface to consumers. Ditto wrt Base layout and KV layout.

Practically, I think we should make this package private. I know that DHE constructs these directly though, so we need to audit how / why they are using it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I have made the change non-breaking and created a separate ticket (DH-18831) for investigating into the DHE Iceberg construction logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DocumentationNeeded feature request New feature or request ReleaseNotesNeeded Release notes are needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants