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

Allow to override DirectoryLister #16184

Closed

Conversation

Praveen2112
Copy link
Member

Description

Allows us to bind custom DirectoryLister implementation via Guice

Release notes

(x) This is not user-visible or docs only and no release notes are required.

}
else {
binder.bind(DirectoryLister.class).to(CachingDirectoryLister.class).in(Scopes.SINGLETON);
optionalBinder.setDefault().to(CachingDirectoryLister.class).in(Scopes.SINGLETON);
Copy link
Contributor

Choose a reason for hiding this comment

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

The optional binder applies only to this branch.

@Praveen2112 Praveen2112 marked this pull request as draft February 20, 2023 12:25
Allows us to bind custom DirectoryLister implementation via Guice
@Praveen2112 Praveen2112 force-pushed the praveen/hive_directory_lister branch from 2173880 to 0c02ade Compare February 20, 2023 12:46
@electrum
Copy link
Member

What's the use case for overriding?

@electrum
Copy link
Member

We're actively working on #15921 which is going to replace DirectoryLister with something based on TrinoFileSystem, so we shouldn't be changing this code now, unless there is a compelling reason.

@ebyhr ebyhr removed their request for review February 22, 2023 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants