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

Adding Glob support for Data lake #36

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

Conversation

ramackri
Copy link
Member

We need to customize the glob fs spec for Lake support which needs to be implemented in ocifs python library
image

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 26, 2024
@ramackri ramackri changed the title Adding Glob support for Data lake support Adding Glob support for Data lake Feb 26, 2024
@@ -1274,6 +1274,42 @@ def walk(self, path, maxdepth=None, **kwargs):
raise ValueError("Cannot crawl all of OCI Object Storage")
return super().walk(path, maxdepth=maxdepth, **kwargs)

def glob(self, path, maxdepth=None, **kwargs):
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be in the ocilake specific implementation file?

Copy link
Member Author

@ramackri ramackri Feb 26, 2024

Choose a reason for hiding this comment

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

if the URI contains lake then the customized logic will be executed otherwise fs spec custom implementation will be invoked. We used self.split_path(path) (which is mentioned inside core.py ---> will fetch bucket/namespace info from lake service).This custom logic will not create any impact on the existing use cases

@ramackri ramackri requested a review from ahosler July 15, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants