Skip to content

Conversation

@nastra
Copy link
Contributor

@nastra nastra commented Oct 30, 2024

The original idea why credentials were added to LoadViewResponse was to pass back the credentials to the table that the view is referencing. However, we actually want to wait with this until we have the use case fully defined on how this will work and want to remove the functionality for now, as otherwise we'd have to maintain reading/writing credentials in LoadViewResponse forever.
We'll we sharing a separate proposal on how to realize this shortly on the mailing list.

@nastra nastra added this to the Iceberg 1.7.0 milestone Oct 30, 2024
@github-actions github-actions bot added the core label Oct 30, 2024
@nastra nastra requested a review from rdblue October 30, 2024 16:01
@singhpk234
Copy link
Contributor

singhpk234 commented Oct 30, 2024

@nastra can you please add some pr description, as to why are we removing this ?

@RussellSpitzer
Copy link
Member

This change was added 2 weeks ago to the Load Table View api, @amogh-jahagirdar was the reviewer. Since this wasn't in any released code I am good with removing it now since we can always add it back later. If @amogh-jahagirdar signs off I'm good to merge.

Copy link
Member

@jbonofre jbonofre left a comment

Choose a reason for hiding this comment

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

As discussed during the catalog sync-up meeting today, this PR makes sense to me.


Map<String, String> config();

@Value.Default
Copy link
Member

Choose a reason for hiding this comment

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

As the credentials() method didn't exist in previous releases (it has been introduced recently), and as it can be problematic for "secure views", I think it makes sense to remove it before 1.7 release.

Copy link
Contributor

@amogh-jahagirdar amogh-jahagirdar left a comment

Choose a reason for hiding this comment

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

Yeah adding credentials for views in this manner complicates the protocol if we want to later add secure views, I'm good with the removal here!

Copy link
Contributor

@singhpk234 singhpk234 left a comment

Choose a reason for hiding this comment

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

LGTM, as well, Thanks @nastra !
Thank you for the context @RussellSpitzer !

@amogh-jahagirdar
Copy link
Contributor

Thanks @nastra ! and Thanks @RussellSpitzer @jbonofre @danielcweeks @singhpk234 for reviewing, I'll just go ahead and merge

@amogh-jahagirdar amogh-jahagirdar merged commit dec84c0 into apache:main Oct 30, 2024
zachdisc pushed a commit to zachdisc/iceberg that referenced this pull request Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants