-
Notifications
You must be signed in to change notification settings - Fork 245
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
Add function to get version as of a certain date. Also formatting #378
Conversation
python/lance/__init__.py
Outdated
return _get_versioned_dataset(filesystem, uri, version) | ||
|
||
|
||
def _is_versioned(filesystem, uri): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what does this mean. it checks whether latest manifest exist? why it is related to versioned?
Or you mean it is a plain dataset? Should we just rename this function to is_plain_dataset
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm just refactoring what you had in there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure i can call this "is_plain_dataset"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
python/lance/__init__.py
Outdated
return not (filesystem.get_file_info(manifest).type == pa.fs.FileType.NotFound) | ||
|
||
|
||
def _get_versioned_dataset(filesystem, uri, version): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's add type annotations here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
python/lance/__init__.py
Outdated
return _dataset_plain(uri, filesystem=filesystem, **kwargs) | ||
|
||
if asof is not None: | ||
ds = dataset(uri, version, filesystem=filesystem, **kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use _get_versioned_dataset
here? to reduce another I/O to check is_plain_dataset
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
No description provided.