-
Notifications
You must be signed in to change notification settings - Fork 332
Remove PolarisMetaStoreSession from FileIOFactory/FileIOUtil in favor of CallContext #1057
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ | |
| import java.util.Set; | ||
| import org.apache.iceberg.catalog.TableIdentifier; | ||
| import org.apache.iceberg.io.FileIO; | ||
| import org.apache.polaris.core.context.RealmContext; | ||
| import org.apache.polaris.core.context.CallContext; | ||
| import org.apache.polaris.core.persistence.PolarisResolvedPathWrapper; | ||
| import org.apache.polaris.core.storage.PolarisStorageActions; | ||
|
|
||
|
|
@@ -41,7 +41,7 @@ public interface FileIOFactory { | |
| * <p>This method may obtain subscoped credentials to restrict the FileIO's permissions, ensuring | ||
| * secure and limited access to the table's data and locations. | ||
| * | ||
| * @param realmContext the realm for which the FileIO is being loaded. | ||
| * @param callContext the call for which the FileIO is being loaded. | ||
| * @param ioImplClassName the class name of the FileIO implementation to load. | ||
| * @param properties configuration properties for the FileIO. | ||
| * @param identifier the table identifier. | ||
|
|
@@ -51,7 +51,7 @@ public interface FileIOFactory { | |
| * @return a configured FileIO instance. | ||
| */ | ||
| FileIO loadFileIO( | ||
| @Nonnull RealmContext realmContext, | ||
dennishuo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| @Nonnull CallContext callContext, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This exposes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What part of
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to clarify: we're exposing extra information here. Removing what has been exposed is much harder than exposing more details later.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah it actually is already needed because it uses the So it actually needs all of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a good point to keep in mind though that right now
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I did not block this PR, but I think this API change is far from ideal. @dennishuo : would you mind refactoring it some more to reduce the scope of services exposed to FileIO factories? |
||
| @Nonnull String ioImplClassName, | ||
| @Nonnull Map<String, String> properties, | ||
| @Nonnull TableIdentifier identifier, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.