Skip to content

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
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