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

[Kernel] Use LogStores in listFrom implementation in default FileSystemClient #2770

Merged
merged 4 commits into from
Mar 22, 2024

Conversation

vkorukanti
Copy link
Collaborator

Description

LogStores in storage module have file system operations (needed for reading/writing DeltaLogs) implemented for each storage (e.g. s3, GCS etc.) to take into account of the behavior of storage and also efficiently implement certain operations depending upon the storage system support (e.g. fast listing in S3).

This PR creates LogStoreProvider to get the specific implementation of the LogStore for given scheme. Also updates the DefaultFileSystemClient.listFrom to use the LogStore.listFrom.

The majority of the code here is copied from the delta-spark and standalone projects.

How was this patch tested?

Unittests for LogStoreProvider and existing integration tests for DefaultFileSystemClient.listFrom changes.

@vkorukanti vkorukanti added this to the 3.2.0 milestone Mar 20, 2024

/**
* Get the {@link LogStore} instance for the given schema and configuration. Callers can set
* {code io.delta.kernel.logStore.class} to specify the LogStore implementation to use. If not
Copy link
Collaborator

Choose a reason for hiding this comment

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

why support both io.delta.kernel.logStore.class and io.delta.kernel.logStore.<scheme>.impl?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This should be io.delta.kernel.logStore.<scheme>.impl. Updated the javadoc

vkorukanti added a commit that referenced this pull request Mar 21, 2024
vkorukanti added a commit that referenced this pull request Mar 22, 2024
@vkorukanti vkorukanti merged commit cb77f54 into delta-io:master Mar 22, 2024
7 checks passed
@vkorukanti vkorukanti deleted the useLogStoreListFrom branch May 9, 2024 02:42
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.

None yet

2 participants